diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-02-26 03:53:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-26 03:53:31 -0500 |
commit | 893c049aa3a76c1ece5ffe388d18a47b6ef456ff (patch) | |
tree | 5f14e5b231f35c9d6d381c2eb3fe48fa7ce3a19f | |
parent | Correct typo in swaylock(1) (diff) | |
parent | Make it work for all compilers (diff) | |
download | sway-893c049aa3a76c1ece5ffe388d18a47b6ef456ff.tar.gz sway-893c049aa3a76c1ece5ffe388d18a47b6ef456ff.tar.zst sway-893c049aa3a76c1ece5ffe388d18a47b6ef456ff.zip |
Merge pull request #1086 from Fale/ignore-Wimplicit-fallthrough
Ignore Wimplicit-fallthrough
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 74c79075..685e8fc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -14,6 +14,11 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") | |||
14 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra") | 14 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra") |
15 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter") | 15 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter") |
16 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") | 16 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") |
17 | if (CMAKE_COMPILER_IS_GNUCC) | ||
18 | if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0) | ||
19 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wimplicit-fallthrough=0") | ||
20 | endif() | ||
21 | endif() | ||
17 | 22 | ||
18 | list(INSERT CMAKE_MODULE_PATH 0 | 23 | list(INSERT CMAKE_MODULE_PATH 0 |
19 | ${CMAKE_CURRENT_SOURCE_DIR}/CMake | 24 | ${CMAKE_CURRENT_SOURCE_DIR}/CMake |