Merge pull request #729 from milkmiruku/master

add -Wno-error=implicit-fallthrough and -Wno-error=switch-default to CMAKE_CXX_FLAGS
This commit is contained in:
Simon Fels 2018-06-05 17:10:04 +02:00 committed by GitHub
commit 1eadb3bd2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_COMPILER_IS_GNUCXX)
endif()
# ANBOX: allow old-style casts
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=old-style-cast")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=old-style-cast -Wno-error=switch-default")
###############################################################################
# BACKWARD OBJECT