};
/// @brief Convenience macros for invoking runOrConfig()
-#define RUN_CONFIG_OK(a) (runConfigOrFail(a, NO_ERROR, ""))
+#define RUN_CONFIG_OK(a) (static_cast<void>(runConfigOrFail(a, NO_ERROR, "")))
#define SYNTAX_ERROR(a,b) ASSERT_TRUE(runConfigOrFail(a,SYNTAX_ERROR,b))
#define LOGIC_ERROR(a,b) ASSERT_TRUE(runConfigOrFail(a,LOGIC_ERROR,b))
// Note we don't care nor can we predict if this
// succeeds or fails. The address and port may or may
// not be valid on the test host.
- runWithConfig(config);
+ static_cast<void>(runWithConfig(config));
}
/// @brief Used to permit visual inspection of logs to ensure
// local and remote address are set like it was a message sent from the
// directly connected client.
Pkt4Ptr received;
- createPacketFromBuffer(msg, received);
+ static_cast<void>(createPacketFromBuffer(msg, received));
received->setIface(iface);
received->setIndex(ifindex);
received->setLocalAddr(IOAddress("255.255.255.255"));
string config = "{ \"bool_test\": true , \n"
" \"uint32_test\": 77 , \n"
" \"string_test\": \"hmmm chewy\" }";
- ASSERT_NO_THROW(fromJSON(config));
+ ASSERT_NO_THROW(static_cast<void>(fromJSON(config)));
answer_ = cfg_mgr_->simpleParseConfig(config_set_, false);
EXPECT_TRUE(checkAnswer(0));
string config = "{ \"bool_test\": true , \n"
" \"uint32_test\": 77 , \n"
" \"string_test\": \"hmmm chewy\" }";
- ASSERT_NO_THROW(fromJSON(config));
+ ASSERT_NO_THROW(static_cast<void>(fromJSON(config)));
answer_ = cfg_mgr_->simpleParseConfig(config_set_, false,
[]() {