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.
This commit is contained in:
parent
21f1e37cbd
commit
042a0b7e95
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124374
@ -97,3 +97,6 @@ libkern.${MACHINE_ARCH}:: ${KMSRCS}
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
# Disable warnings in contributed sources.
|
||||
CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/}
|
||||
|
@ -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/}
|
||||
|
Loading…
Reference in New Issue
Block a user