PERFORCE change 103927 for review
John Birrell
jb at FreeBSD.org
Tue Aug 15 00:47:25 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103927
Change 103927 by jb at jb_freebsd2 on 2006/08/15 00:46:51
Add a toggle to tell gcc to just STFU when it comes to "#pragma ident"
that is used EVERYWHERE in OpenSolaris code.
I want to be anble to warn up WARNS to have genuine warnings
reported, but #pragma ident is just annoying, so just make it
go away.
This will allow me to undo a lot of the hacks that I've had to do
to OpenSolaris files.
Affected files ...
.. //depot/projects/dtrace/src/share/mk/bsd.sys.mk#3 edit
Differences ...
==== //depot/projects/dtrace/src/share/mk/bsd.sys.mk#3 (text+ko) ====
@@ -52,5 +52,9 @@
. endif
.endif
+.if defined(IGNORE_PRAGMA)
+CWARNFLAGS += -Wno-unknown-pragmas
+.endif
+
# Allow user-specified additional warning flags
CFLAGS += ${CWARNFLAGS}
More information about the p4-projects
mailing list