From 08e39507aa932e7f09f8a185cd73036c3b333322 Mon Sep 17 00:00:00 2001 From: Phil Miller Date: Tue, 18 Oct 2022 11:50:23 -0600 Subject: [PATCH] #1999: Suppress warning about necessary function defition even though it's not called --- tests/unit/lb/test_lb_data_comm.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/unit/lb/test_lb_data_comm.cc b/tests/unit/lb/test_lb_data_comm.cc index 474d04bd96..42c17f35e0 100644 --- a/tests/unit/lb/test_lb_data_comm.cc +++ b/tests/unit/lb/test_lb_data_comm.cc @@ -127,17 +127,10 @@ struct ReduceMsg : SerializeRequired< ) { } -#if defined(__INTEL_COMPILER) -#pragma warning(push) -#pragma warning(disable : 177) -#endif template void serialize(SerializerT& s) { MessageParentType::serialize(s); } -#if defined(__INTEL_COMPILER) -#pragma warning(pop) -#endif }; struct ColProxyMsg : vt::Message { using ProxyType = vt::CollectionProxy; @@ -762,6 +755,9 @@ TEST_F(TestLBDataComm, test_lb_data_comm_handler_to_handler_send) { } } EXPECT_TRUE(found); + + // Suppress warnings about that method being "declared but never referenced" from Intel icpc and Nvidia nvcc + (void)&ReduceMsg::serialize; } } /* end anon namespace */