From: Petr Štetiar Date: Fri, 4 Oct 2019 14:43:05 +0000 (+0200) Subject: cmake: enable extra compiler checks X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=802fbd4d6f39eae2ad555bc81158ae81d9bfbf50;p=project%2Flibnl-tiny.git cmake: enable extra compiler checks Let's enforce additional automatic checks enforced by the compiler in order to catch possible errors during compilation. Signed-off-by: Petr Štetiar --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a81727d..10bf4e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ INCLUDE(GNUInstallDirs) INCLUDE_DIRECTORIES(include) -ADD_DEFINITIONS(-Wall -Werror) +ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter) STRING(REPLACE "-DNDEBUG" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") ADD_LIBRARY(nl-tiny SHARED