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.99rst.org/?a=commitdiff_plain;h=4e7411a8d0a46363f9946bff762eda70d5d5de6c;p=openwrt-packages.git cgi-io: cmake: enable extra compiler warnings Spotting issues during compilation is cheaper. Signed-off-by: Petr Štetiar --- diff --git a/net/cgi-io/src/CMakeLists.txt b/net/cgi-io/src/CMakeLists.txt index 56d9fa7f1..c7c9d40ca 100644 --- a/net/cgi-io/src/CMakeLists.txt +++ b/net/cgi-io/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 "")