A recent GCC / LLVM update has caused my setup to spew far too many
warnings on compiling Wget. On a closer look, they all come from
Gnulib code. I propose the attached patch to explicitly mark those
files as libraries and have the compiler suppress warnings from them.
This way we can focus on the warnings generated by Wget codebase
alone.

-- 
Thanking You,
Darshit Shah
From 63f5799a94728e5ac003d860bc22f04b0050fcbc Mon Sep 17 00:00:00 2001
From: Darshit Shah <[email protected]>
Date: Fri, 29 Jan 2016 15:13:46 +0100
Subject: [PATCH] Explicitly mark lib directories in Makefile

* src/Makefile.am: Use -isystem to mark library directories and suppress
warnings from there.
---
 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 050f58e..f4d5ff1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -61,7 +61,7 @@ wget_SOURCES = connect.c convert.c cookies.c ftp.c	\
 nodist_wget_SOURCES = version.c
 EXTRA_wget_SOURCES = iri.c
 LDADD = $(LIBOBJS) ../lib/libgnu.a
-AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
+AM_CPPFLAGS = -isystem $(top_builddir)/lib -isystem $(top_srcdir)/lib
 
 
 ../lib/libgnu.a:
-- 
2.7.0

Reply via email to