Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Sep 27, 2024
1 parent 495c2ad commit 77ae532
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ target_link_libraries(khiopsdriver_file_gcs PRIVATE google-cloud-cpp::storage
spdlog::spdlog)
target_compile_options(
khiopsdriver_file_gcs
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-Wall>
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-Wall;/wd4101;/wd4710;/wd4711>
PRIVATE $<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-Wall;-Wextra;-pedantic>)

option(BUILD_TESTS "Build test programs" OFF)
Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ add_executable(basic_test basic_test.cpp drivertest.cpp)

target_compile_options(
basic_test
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/w4;/wd4101;/wd4710;/wd4711>
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/W4;/wd4101;/wd4710;/wd4711>
PRIVATE $<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-Wall;-Wextra;-pedantic>)

# MSVC requires /bigobj to build in debug config
Expand All @@ -36,7 +36,7 @@ gtest_discover_tests(basic_test)
add_executable(plugin_test plugin_test.cpp path_helper.cpp)
target_compile_options(
plugin_test
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/w4;/wd4101;/wd4710;/wd4711>
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/W4;/wd4101;/wd4710;/wd4711>
PRIVATE $<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-Wall;-Wextra;-pedantic>)
if(WIN32)
# custom build and test execution for Windows
Expand Down

0 comments on commit 77ae532

Please sign in to comment.