From 908a9f4f1027fdc813dc3a0c0f6231194bc5be3f Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 5 Jul 2018 03:13:03 +0200 Subject: CMakeLists.txt: add -Wimplicit-fallthrough to the compiler flags Signed-off-by: Alexander Couzens Acked-by: Hans Dedecker --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 696412b..50f62bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) PROJECT(netifd C) -ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unknown-warning-option -Wno-format-truncation) +ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unknown-warning-option -Wno-format-truncation -Wimplicit-fallthrough) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") -- cgit v1.2.1