Skip to content

Commit

Permalink
Do not pass -Wno-unused-parameter to MSVC compiler
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <[email protected]>
  • Loading branch information
traversaro committed Mar 28, 2021
1 parent f422c02 commit 9985445
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
Expand Up @@ -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
Expand Down

0 comments on commit 9985445

Please sign in to comment.