From 2ca5a258fdae73d1c18c0b460ef971a048d5b457 Mon Sep 17 00:00:00 2001 From: ru Date: Sun, 11 Jan 2004 10:42:47 +0000 Subject: 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. --- lib/libc/Makefile | 3 +++ lib/libc/gdtoa/Makefile.inc | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc') 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 + +# 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/} -- cgit v1.1