From: Oleksij Rempel Date: Thu, 13 Oct 2016 07:41:06 +0000 (+0200) Subject: add -Wunused-but-set-variable X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7f95fac61c96c91198ad65198c2fa30dfc936286;p=open-ath9k-htc-firmware.git add -Wunused-but-set-variable 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 --- diff --git a/target_firmware/CMakeLists.txt b/target_firmware/CMakeLists.txt index db31dc4..e167b36 100644 --- a/target_firmware/CMakeLists.txt +++ b/target_firmware/CMakeLists.txt @@ -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