Am Freitag, 29. Januar 2016, 15:18:57 schrieb Darshit Shah: > 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.
I came back to this and just tried it out... for me this is not a solution. I do get exactly the same warnings as before. I already removed '-pedantic' from my CFLAGS, but still get lots of these: In file included from xsize.c:3:0: xsize.h:63:1: warning: no previous prototype for 'xsum' [-Wmissing-prototypes] xsum (size_t size1, size_t size2) ^ xsize.h:74:1: warning: no previous prototype for 'xsum3' [-Wmissing- prototypes] xsum3 (size_t size1, size_t size2, size_t size3) ^ xsize.h:84:1: warning: no previous prototype for 'xsum4' [-Wmissing- prototypes] xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) ^ xsize.h:94:1: warning: no previous prototype for 'xmax' [-Wmissing-prototypes] xmax (size_t size1, size_t size2) Looking at the header files (e.g. xsize.h), it does not make sense to have prototypes here... gnulib should have AM_CPPFLAGS += -Wno-missing-prototypes. Not sure, if it is worth asking. Tim
