Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1196 Fix compiler warnings in binding c tests
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Eltzschig <[email protected]>
  • Loading branch information
elfenpiff committed Jul 6, 2022
1 parent 1e1ac61 commit 0fdcfd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 0 additions & 10 deletions iceoryx_binding_c/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,3 @@ iox_add_executable( TARGET ${PROJECT_PREFIX}_moduletests
LIBS_APPLE dl
LIBS_LINUX acl dl pthread rt
)

## TODO: iox-#1287 remove those compiler warning exceptions
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(TEST_CXX_FLAGS PRIVATE ${ICEORYX_WARNINGS} /bigobj)
else()
set(TEST_CXX_FLAGS PRIVATE ${ICEORYX_WARNINGS} ${ICEORYX_SANITIZER_FLAGS} -Wno-pedantic -Wno-conversion)
endif()

target_compile_options(${PROJECT_PREFIX}_moduletests PRIVATE ${TEST_CXX_FLAGS})
## TODO: END iox-#1287 remove those compiler warning exceptions
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class PoshRuntimeMock : public iox::runtime::PoshRuntime
mockRuntime().reset();
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
MOCK_METHOD(iox::PublisherPortUserType::MemberType_t*,
getMiddlewarePublisher,
(const iox::capro::ServiceDescription&,
Expand Down Expand Up @@ -79,6 +81,7 @@ class PoshRuntimeMock : public iox::runtime::PoshRuntime
sendRequestToRouDi,
(const iox::runtime::IpcMessage&, iox::runtime::IpcMessage&),
(noexcept, override));
#pragma GCC diagnostic pop

private:
PoshRuntimeMock(const iox::RuntimeName_t& name)
Expand Down

0 comments on commit 0fdcfd7

Please sign in to comment.