From: Petr Štetiar Date: Fri, 11 Oct 2019 13:03:04 +0000 (+0200) Subject: cgi-io: cmake: enable extra compiler warnings X-Git-Url: http://git.openwrt.org/openwrt/static/git-favicon.png?a=commitdiff_plain;h=b015cff30516c904217961f035d38bc025f26a52;p=project%2Fcgi-io.git cgi-io: cmake: enable extra compiler warnings Spotting issues during compilation is cheaper. Signed-off-by: Petr Štetiar --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 56d9fa7..c7c9d40 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,7 +9,8 @@ FIND_LIBRARY(ubox NAMES ubox) FIND_LIBRARY(ubus NAMES ubus) INCLUDE_DIRECTORIES(${ubus_include_dir}) -ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations) +ADD_DEFINITIONS(-Os -Wall -Werror -Wextra --std=gnu99 -g3) +ADD_DEFINITIONS(-Wno-unused-parameter -Wmissing-declarations) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")