Skip to content

Commit

Permalink
Enable additional compilation warnings
Browse files Browse the repository at this point in the history
This should make it clear when some common idioms that break MSVC are used.
  • Loading branch information
fwojcik committed Nov 28, 2023
1 parent 295d729 commit 514d4f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-function \
-Wno-unknown-pragmas -Wno-unused-lambda-capture")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wvla -Wpedantic \
-Wno-unused-function -Wno-unknown-pragmas")

if(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-lambda-capture \
-Wno-dollar-in-identifier-extension")
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
set(ACTUAL_GCC TRUE)
Expand Down

0 comments on commit 514d4f5

Please sign in to comment.