add -Wno-error=implicit-fallthrough to CMAKE_CXX_FLAGS

This commit is contained in:
Milk Brewster 2018-05-27 19:01:51 +01:00 committed by GitHub
commit 683f3a0ef6
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=implicit-fallthrough")
###############################################################################
# BACKWARD OBJECT