Change flags passed to G++ and Clang to "-Wall -Wextra -Wno-implicit-fallthrough -Wno-parentheses -Wno-unused-parameter -pedantic"

This commit is contained in:
RElesgoe 2020-10-17 19:17:16 -07:00 committed by GitHub
parent 17e931280f
commit 57b511a5be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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