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:
parent
fe36d5d298
commit
f4c93e2c4a
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue