From b24a72ef9d47c9e51f6efe79b51073d690584aa5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 7 May 2014 18:32:06 +0100 Subject: [PATCH] Makefile.in: pass -Wno-unused-parameter explicitly 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 Signed-off-by: Ian Jackson CC: Stephen Early --- 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 \ -- 2.11.0