aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-01-11 10:42:47 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-01-11 10:42:47 +0000
commit042a0b7e95ba423ba1a0413ea19a6702e96294ac (patch)
tree6b5723c7628cab323c2f1906b55fd3f6b5de65a0 /lib/libc/Makefile
parent21f1e37cbd9d0ac955d43f6ad8dff5a0e1c67eac (diff)
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.
Notes
Notes: svn path=/head/; revision=124374
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 ef7abce6d7da..e39540644c38 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}/}