summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2018-12-26 16:02:14 -0800
committerWouter van Oortmerssen <aardappel@gmail.com>2018-12-26 16:03:07 -0800
commita821b15634d020d5d06ba03b5f1e0d0fc82e5cd8 (patch)
treeea8cbc4ba2d2cff140db826fd0abb41cf5dddbf5 /CMakeLists.txt
parent87704e987eb51dbd9852d7cae4e8013d47ad6eef (diff)
downloadflatbuffers-a821b15634d020d5d06ba03b5f1e0d0fc82e5cd8.tar.gz
flatbuffers-a821b15634d020d5d06ba03b5f1e0d0fc82e5cd8.tar.bz2
flatbuffers-a821b15634d020d5d06ba03b5f1e0d0fc82e5cd8.zip
Added -Werror=implicit-fallthrough=2 to GCC 7 build.
Change-Id: I3f23bb1478763334dbc7e43579555518fb2412c2
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b9d94b94..f4e563a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -170,7 +170,7 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.4)
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
set(CMAKE_CXX_FLAGS
- "${CMAKE_CXX_FLAGS} -faligned-new")
+ "${CMAKE_CXX_FLAGS} -faligned-new -Werror=implicit-fallthrough=2")
endif()
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Wunused-result -Werror=unused-result -Wunused-parameter -Werror=unused-parameter")