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.
This commit is contained in:
John Birrell 2006-11-04 04:39:05 +00:00
parent fe36d5d298
commit f4c93e2c4a
1 changed files with 4 additions and 0 deletions

View File

@ -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}