aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-07-05 22:26:02 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-07-05 22:26:02 +0200
commit38300c037592fbbd09059bb3e728ae4702062245 (patch)
treefbb455d623618d1fad36ccb05072abce95c579db
parentdce2bb72a2c2dd75df043c4916ecc575aff6d61c (diff)
downloaddesktop-tools-38300c037592fbbd09059bb3e728ae4702062245.tar.gz
desktop-tools-38300c037592fbbd09059bb3e728ae4702062245.tar.xz
desktop-tools-38300c037592fbbd09059bb3e728ae4702062245.zip
CMakeLists.txt: suppress a new warning
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 393f586..b93fbd7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,8 +4,8 @@ cmake_minimum_required (VERSION 2.8.11)
# Moar warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
# -Wunused-function is pretty annoying here, as everything is static
- set (CMAKE_C_FLAGS
- "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra -Wno-unused-function")
+ set (wdisabled "-Wno-unused-function -Wno-implicit-fallthrough")
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra ${wdisabled}")
endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
# Version