chore: Unreachable code is error (#2216)

This commit is contained in:
Alex Kremer
2025-06-12 16:16:11 +01:00
committed by GitHub
parent 276477c494
commit 0273ba0da3
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ set(COMPILER_FLAGS
-Wnull-dereference
-Wold-style-cast
-Wpedantic
-Wunreachable-code
-Wunused
# FIXME: The following bunch are needed for gcc12 atm.
-Wno-missing-requires

View File

@@ -1424,7 +1424,7 @@ TEST_F(BackendCassandraNodeMessageTest, UpdatingMessageKeepsItAlive)
{
#if defined(__APPLE__)
GTEST_SKIP() << "Skipping test on Apple platform due to slow DB";
#endif
#else
static boost::uuids::uuid const kUUID = generateUuid();
static std::string const kUPDATED_MESSAGE = "updated message";
@@ -1442,4 +1442,5 @@ TEST_F(BackendCassandraNodeMessageTest, UpdatingMessageKeepsItAlive)
EXPECT_EQ(uuid, kUUID);
EXPECT_EQ(message, kUPDATED_MESSAGE);
});
#endif
}