Skip to content

Commit

Permalink
Do not pass -Wno-unused-parameter to MSVC compiler (#716)
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <[email protected]>
traversaro authored Apr 5, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f422c02 commit 66c0767
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -10,10 +10,12 @@ set_source_files_properties(
)

# Suppress compiler warnings in generated protobuf C++ code.
set_source_files_properties(
${PROTO_PRIVATE_SRC}
COMPILE_FLAGS -Wno-unused-parameter
)
if(NOT MSVC)
set_source_files_properties(
${PROTO_PRIVATE_SRC}
COMPILE_FLAGS -Wno-unused-parameter
)
endif()

set(network_sources
network/NetworkConfig.cc

0 comments on commit 66c0767

Please sign in to comment.