From: Sascha Wildner Date: Fri, 29 Mar 2013 13:11:13 +0000 (+0100) Subject: libc: Bring back warnings to libc. X-Git-Tag: v3.4.0rc~22 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/b2ea2a51a6b802bbad74d60b9e29d01455cf02ae libc: Bring back warnings to libc. To disable warnings for the gdtoa sources only, the tweaking of the CWARNFLAGS has to come _after_ is included. Therefore, it has to be done in libc's Makefile instead of its Makefile.inc. Before this commit warnings were completely disabled for libc due to '-w' passed to every command line. Also reset WARNS back to 0 since right now, libc doesn't even pass WARNS=1. --- diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 9dbb1cca8b..ebf53cf8ef 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -31,3 +31,6 @@ libkern.${MACHINE_ARCH}:: ${KMSRCS} .endif .include + +# Disable warnings in contributed sources. +CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/} diff --git a/lib/libc/Makefile.inc b/lib/libc/Makefile.inc index 3b0525bb9b..a7fd9bb19e 100644 --- a/lib/libc/Makefile.inc +++ b/lib/libc/Makefile.inc @@ -10,6 +10,8 @@ MDASM= MIASM= NOASM= +WARNS=0 + .include "${.CURDIR}/../libc/${MACHINE_ARCH}/Makefile.inc" .include "${.CURDIR}/../libc/citrus/Makefile.inc" @@ -60,6 +62,3 @@ SRCS+= ${_src} .endif .endfor .endif - -# Disable warnings in contributed sources. -CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}