Skip to content

Commit 59f6ccd

Browse files
committed
iox-#2130 Fix binding-C publisher options test
1 parent e3fdb93 commit 59f6ccd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

iceoryx_binding_c/test/moduletests/test_publisher.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -452,14 +452,8 @@ TEST(iox_pub_options_test, publisherOptionsInitializationCheckReturnsFalseWithou
452452
{
453453
::testing::Test::RecordProperty("TEST_ID", "f3c7c69e-6946-4da4-9c9e-93129cae9d61");
454454
iox_pub_options_t sut;
455-
#if (defined(__GNUC__) && __GNUC__ >= 7 && !defined(__clang__))
456-
#pragma GCC diagnostic push
457-
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
458-
#endif
455+
memset(&sut, 0, sizeof(sut));
459456
EXPECT_FALSE(iox_pub_options_is_initialized(&sut));
460-
#if (defined(__GNUC__) && __GNUC__ >= 7 && !defined(__clang__))
461-
#pragma GCC diagnostic pop
462-
#endif
463457
}
464458

465459
TEST(iox_pub_options_test, publisherOptionInitializationWithNullptrDoesNotCrash)

0 commit comments

Comments
 (0)