add -Wunused-but-set-variable
authorOleksij Rempel <linux@rempel-privat.de>
Thu, 13 Oct 2016 07:41:06 +0000 (09:41 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Sat, 15 Oct 2016 13:55:49 +0000 (15:55 +0200)
we can't just now use -Wall. So lets add them step by step.
-Wunused-but-set-variable seems to be a good start :)

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/CMakeLists.txt

index db31dc471eef82763e13f312999e501fb5bff6c9..e167b36850db3b40192c367530dc6def895bec26 100644 (file)
@@ -40,7 +40,17 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(ath9k_firmware NONE)
 ENABLE_LANGUAGE(C)
 
-ADD_DEFINITIONS(-g -Os -Wunused-label -Wunused-variable -Wunused-value -Wpointer-arith -Wundef -nostdlib -Wundef)
+ADD_DEFINITIONS(
+       -g -Os
+       -Wunused-label
+       -Wunused-variable
+       -Wunused-value
+       -Wpointer-arith
+       -Wundef
+       -nostdlib
+       -Wundef
+       -Wunused-but-set-variable
+)
 ADD_DEFINITIONS(
        -D_RAM_
        -DBIG_ENDIAN -D_BYTE_ORDER=_BIG_ENDIAN