summaryrefslogtreecommitdiffstats
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-01-11 10:42:47 +0000
committerru <ru@FreeBSD.org>2004-01-11 10:42:47 +0000
commit2ca5a258fdae73d1c18c0b460ef971a048d5b457 (patch)
tree6b5723c7628cab323c2f1906b55fd3f6b5de65a0 /lib/libc/Makefile
parentb10112e3d11f879afddde834c51c190d019f5a78 (diff)
downloadFreeBSD-src-2ca5a258fdae73d1c18c0b460ef971a048d5b457.zip
FreeBSD-src-2ca5a258fdae73d1c18c0b460ef971a048d5b457.tar.gz
Replaced an ugly hack to selectively disable warnings
in contributed sources with just a hack made possible by bsd.sys.mk,v 1.33. This is better because it just nulls out the warning flags rather than adding gcc(1) specific -w option to CFLAGS.
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r--lib/libc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index ef7abce..e395406 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -97,3 +97,6 @@ libkern.${MACHINE_ARCH}:: ${KMSRCS}
.endif
.include <bsd.lib.mk>
+
+# Disable warnings in contributed sources.
+CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/}
OpenPOWER on IntegriCloud