blob: dcbe01d5ed5142bb9392ac41e24d08cbc2f09aa7 [file] [log] [blame]
Andrew Geissler1548c072019-02-22 16:03:50 -06001From d4f73b037d11d20f080e74c05df28853fb833075 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Dec 2018 22:59:47 -0800
4Subject: [PATCH] Do not set Wno-unused-but-set-variable
5
6This is gcc specific warning, not implemented by pretending to be gcc
7like compilers e.g. clang.
8
9We will pass this option from recipe
10
11Upstream-Status: Inappropriate [OE-Specific]
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 m4/compiler_warnings.m4 | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4
19index f498a28..e65e97f 100644
20--- a/m4/compiler_warnings.m4
21+++ b/m4/compiler_warnings.m4
22@@ -11,7 +11,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
23 -Wdeclaration-after-statement -Wstrict-prototypes \
24 -Wno-unused-parameter -Wno-sign-compare \
25 -Wno-deprecated-declarations \
26- -Wno-unused-but-set-variable -Wformat-security; do
27+ -Wno-unused -Wformat-security; do
28 SAVE_CFLAGS="$CFLAGS"
29 CFLAGS="$CFLAGS $option"
30 AC_MSG_CHECKING([whether gcc understands $option])