-Wextra is a newer name and it is a bit more descriptive.
While here, break a long line.
CWARNFLAGS += -Wall -Wno-pointer-sign
. endif
. if ${WARNS} >= 3
-CWARNFLAGS += -W -Wno-unused-parameter -Wstrict-prototypes\
+CWARNFLAGS += -Wextra -Wno-unused-parameter -Wstrict-prototypes\
-Wmissing-prototypes -Wpointer-arith\
-Wold-style-definition
. endif
-Wshadow -Wcast-align -Wunused-parameter
. endif
. if ${WARNS} >= 6
-CWARNFLAGS += -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
+CWARNFLAGS += -Wchar-subscripts -Winline -Wnested-externs\
+ -Wredundant-decls
. endif
. if ${WARNS} >= 2 && ${WARNS} <= 4
# XXX Delete -Wuninitialized by default for now -- the compiler doesn't