summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/Makefile3
-rw-r--r--lib/libc/gdtoa/Makefile.inc3
2 files changed, 3 insertions, 3 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}/}
diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc
index a90dc54..2622a81 100644
--- a/lib/libc/gdtoa/Makefile.inc
+++ b/lib/libc/gdtoa/Makefile.inc
@@ -19,6 +19,3 @@ CLEANFILES+=gdtoa_${src}
gdtoa_${src}:
ln -sf ${.CURDIR}/../../contrib/gdtoa/${src} ${.TARGET}
.endfor
-
-# XXX An ugly hack to disable warnings for gdtoa sources.
-CWARNFLAGS+= ${.IMPSRC:Mgdtoa_*.c:C/^.+$/-w/}
OpenPOWER on IntegriCloud