From 7f95fac61c96c91198ad65198c2fa30dfc936286 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Thu, 13 Oct 2016 09:41:06 +0200 Subject: [PATCH] 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 --- target_firmware/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.31.1