add -Wno-error=switch-default to CMAKE_CXX_FLAGS

This commit is contained in:
Milk Brewster 2018-05-30 09:11:38 +01:00 committed by GitHub
commit 2cf14b63bb
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 -Wno-error=implicit-fallthrough")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=old-style-cast -Wno-error=implicit-fallthrough -Wno-error=switch-default")
###############################################################################
# BACKWARD OBJECT