diff options
author | ru <ru@FreeBSD.org> | 2004-01-11 10:42:47 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-01-11 10:42:47 +0000 |
commit | 2ca5a258fdae73d1c18c0b460ef971a048d5b457 (patch) | |
tree | 6b5723c7628cab323c2f1906b55fd3f6b5de65a0 | |
parent | b10112e3d11f879afddde834c51c190d019f5a78 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | lib/libc/Makefile | 3 | ||||
-rw-r--r-- | lib/libc/gdtoa/Makefile.inc | 3 |
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/} |