[PATCH 2/2] Makefile.in: pass -Wno-unused-parameter explicitly
Ian Jackson
ijackson at chiark.greenend.org.uk
Wed May 7 18:48:49 BST 2014
One would think that -Wno-unused would suffice. However, in gcc 4.8.2
it doesn't, even though it does in 4.7.2. This is arguably a bug in
gcc (filed as Debian #747345), but it looks like we will have to work
around it.
This avoids this error message:
util.c:202:29: error: unused parameter 'phase' [-Werror=unused-parameter]
and several like it.
Reported-by: Stephen Early <sde at individualpubs.co.uk>
Signed-off-by: Ian Jackson <ijackson at chiark.greenend.org.uk>
CC: Stephen Early <sde at individualpubs.co.uk>
---
Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index 526175b..7440b30 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -32,7 +32,7 @@ INSTALL:=@INSTALL@
INSTALL_PROGRAM:=@INSTALL_PROGRAM@
CFLAGS:=-Wall @WRITESTRINGS@ @CFLAGS@ -Werror \
- -W -Wno-unused \
+ -W -Wno-unused -Wno-unused-parameter \
-Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -Wredundant-decls \
-Wpointer-arith -Wformat=2 -Winit-self \
--
1.7.10.4
More information about the sgo-software-discuss
mailing list