Skip to content

Commit

Permalink
#1999: Suppress warning about necessary function defition even though…
Browse files Browse the repository at this point in the history
… it's not called
  • Loading branch information
PhilMiller committed Oct 18, 2022
1 parent 4928925 commit 7729bb2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/unit/lb/test_lb_data_comm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,10 @@ struct ReduceMsg : SerializeRequired<
)
{ }

#if defined(__INTEL_COMPILER)
#pragma warning(push)
#pragma warning(disable : 177)
#endif
template <typename SerializerT>
void serialize(SerializerT& s) {
MessageParentType::serialize(s);
}
#if defined(__INTEL_COMPILER)
#pragma warning(pop)
#endif
};
struct ColProxyMsg : vt::Message {
using ProxyType = vt::CollectionProxy<MyCol>;
Expand Down Expand Up @@ -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<checkpoint::Serializer>;
}

} /* end anon namespace */
Expand Down

0 comments on commit 7729bb2

Please sign in to comment.