[OpenWrt-Devel] [PATCH 1/2 umbim] Enable extra compiler checks

Petr Štetiar ynezz at true.cz
Wed Apr 10 05:25:38 EDT 2019


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

Cc: Bjørn Mork <bjorn at mork.no>
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 bc18c1f..f30ca80 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ PROJECT(umbim C)
 
 OPTION(PROXY OFF)
 
-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
+ADD_DEFINITIONS(-Os -ggdb -Wextra -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unused-parameter)
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
 
-- 
1.9.1


_______________________________________________
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