Use >= so we can use the actual WARNS levels.
This commit is contained in:
parent
67fb03d261
commit
626cba20c7
@ -10,26 +10,26 @@
|
||||
|
||||
.if !defined(NO_WARNS) && ${CC} != "icc"
|
||||
. if defined(WARNS)
|
||||
. if ${WARNS} > 0
|
||||
. if ${WARNS} >= 1
|
||||
CWARNFLAGS += -Wsystem-headers
|
||||
. if !defined(NO_WERROR)
|
||||
CWARNFLAGS += -Werror
|
||||
. endif
|
||||
. endif
|
||||
. if ${WARNS} > 1
|
||||
. if ${WARNS} >= 2
|
||||
CWARNFLAGS += -Wall -Wno-format-y2k
|
||||
. endif
|
||||
. if ${WARNS} > 2
|
||||
. if ${WARNS} >= 3
|
||||
CWARNFLAGS += -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
|
||||
. endif
|
||||
. if ${WARNS} > 3
|
||||
. if ${WARNS} >= 4
|
||||
CWARNFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align
|
||||
. endif
|
||||
# BDECFLAGS
|
||||
. if ${WARNS} > 5
|
||||
. if ${WARNS} >= 6
|
||||
CWARNFLAGS += -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
|
||||
. endif
|
||||
. if ${WARNS} > 1 && ${WARNS} < 5
|
||||
. if ${WARNS} >= 2 && ${WARNS} <= 4
|
||||
# XXX Delete -Wuninitialized by default for now -- the compiler doesn't
|
||||
# XXX always get it right.
|
||||
CWARNFLAGS += -Wno-uninitialized
|
||||
|
Loading…
Reference in New Issue
Block a user