CSTD is virtually worthless for WARNS=2-5. Return -pedantic to WARNS=6+.
This commit is contained in:
parent
7021f3f539
commit
cf459fc35c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115455
@ -21,7 +21,6 @@ CFLAGS += -std=iso9899:1999
|
||||
. else
|
||||
CFLAGS += -std=${CSTD}
|
||||
. endif
|
||||
CFLAGS += -pedantic
|
||||
. endif
|
||||
. if defined(WARNS)
|
||||
. if ${WARNS} > 0
|
||||
@ -41,6 +40,9 @@ CFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-al
|
||||
. endif
|
||||
# BDECFLAGS
|
||||
. if ${WARNS} > 5
|
||||
. if defined(CSTD)
|
||||
CFLAGS += -pedantic
|
||||
. endif
|
||||
CFLAGS += -Wbad-function-cast -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
|
||||
. endif
|
||||
. if ${WARNS} > 1 && ${WARNS} < 5
|
||||
|
Loading…
Reference in New Issue
Block a user