Change flags passed to G++ and Clang to "-Wall -Wextra -Wno-implicit-fallthrough -Wno-parentheses -Wno-unused-parameter -pedantic"
This commit is contained in:
parent
17e931280f
commit
57b511a5be
1 changed files with 2 additions and 2 deletions
|
@ -33,12 +33,12 @@ include(ConfigureChecks.cmake)
|
|||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
# using Clang
|
||||
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-implicit-fallthrough -pedantic")
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-implicit-fallthrough -Wno-parentheses -Wno-unused-parameter -pedantic")
|
||||
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
# using G++
|
||||
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-implicit-fallthrough -pedantic" )
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-implicit-fallthrough -Wno-parentheses -Wno-unused-parameter -pedantic" )
|
||||
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
# using Visual Studio
|
||||
|
|
Loading…
Reference in a new issue