summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2006-11-04 04:39:05 +0000
committerjb <jb@FreeBSD.org>2006-11-04 04:39:05 +0000
commitd871054da8ff096494cd388f1cc6f0545ff18d19 (patch)
tree3dea5f34975e0098423b77816c372aa2d14895f2 /share/mk/bsd.sys.mk
parentd35f543b8032d36cf9803197b64a12f13a11b3c1 (diff)
downloadFreeBSD-src-d871054da8ff096494cd388f1cc6f0545ff18d19.zip
FreeBSD-src-d871054da8ff096494cd388f1cc6f0545ff18d19.tar.gz
Allow a makefile to set IGNORE_PRAGMA so that OpenSolaris code can
be built with other gcc warnings enabled. Every Solaris source file has a #pragma ident in it. We can just ignore those definitions.
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index bf5d8d9..2ef7501 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -67,5 +67,9 @@ CWARNFLAGS += -Werror
. endif
.endif
+.if defined(IGNORE_PRAGMA)
+CWARNFLAGS += -Wno-unknown-pragmas
+.endif
+
# Allow user-specified additional warning flags
CFLAGS += ${CWARNFLAGS}
OpenPOWER on IntegriCloud