[OpenWrt-Devel] [PATCH libnl-tiny 3/5] cmake: enable extra compiler checks

Petr Štetiar ynezz at true.cz
Mon Oct 21 05:36:40 EDT 2019


Let's enforce additional automatic checks enforced by the compiler in
order to catch possible errors during compilation.

Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4924586e893c..e7d7f86199cf 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)
 
 ADD_LIBRARY(nl-tiny SHARED
 	attr.c

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list