2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3831] C++17 clang fixes

This commit is contained in:
Francis Dupont
2025-05-14 11:50:52 +02:00
committed by Andrei Pavel
parent f22c691a1f
commit c871f5e97e
4 changed files with 5 additions and 5 deletions

View File

@@ -242,7 +242,7 @@ public:
};
/// @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))

View File

@@ -647,7 +647,7 @@ TEST_F(D2ProcessTest, notLoopbackTest) {
// 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

View File

@@ -219,7 +219,7 @@ DirectClientTest::createClientMessage(const Pkt4Ptr& msg,
// 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"));

View File

@@ -260,7 +260,7 @@ TEST_F(DStubCfgMgrTest, simpleParseConfig) {
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));
@@ -272,7 +272,7 @@ TEST_F(DStubCfgMgrTest, simpleParseConfigWithCallback) {
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,
[]() {