From: Hans Dedecker Date: Thu, 11 Apr 2019 19:50:12 +0000 (+0200) Subject: CMakeList.txt: enable extra compiler checks X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=83698f6b2a7abe0feb3da85d9991c2efe1ed5b6c;p=oweals%2Fodhcpd.git CMakeList.txt: enable extra compiler checks Enforce additional compiler checks in order to catch possible errors during compilation Signed-off-by: Hans Dedecker --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 46cf4c4..3c3e0ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ INCLUDE_DIRECTORIES(${ubox_include_dir} ${libnl-tiny_include_dir}) FIND_LIBRARY(libnl NAMES nl-tiny) -add_definitions(-D_GNU_SOURCE -Wall -Werror -Wextra) +add_definitions(-D_GNU_SOURCE --std=gnu99 -Wall -Werror -Wextra -Wmissing-declarations -Wno-unused-parameter) if (${EXT_CER_ID}) add_definitions(-DEXT_CER_ID=${EXT_CER_ID})