From f4c93e2c4a6eb8e6cdb8cd5618e67c1d3b123654 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sat, 4 Nov 2006 04:39:05 +0000 Subject: [PATCH] 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. --- share/mk/bsd.sys.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index bf5d8d9a85b..2ef75012712 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}