Enable -Wundef warnings for kernel/module compiles. From cpp.info:
`-Wundef' Warn whenever an identifier which is not a macro is encountered in an `#if' directive, outside of `defined'. Such identifiers are replaced with zero.
This commit is contained in:
parent
74aa397f16
commit
dc7d7b0c51
@ -12,7 +12,10 @@ CWARNFLAGS=
|
||||
.else
|
||||
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
|
||||
-fformat-extensions -std=c99
|
||||
${_wundef} -fformat-extensions -std=c99
|
||||
.if !defined(NO_UNDEF)
|
||||
_wundef= -Wundef
|
||||
.endif
|
||||
.endif
|
||||
#
|
||||
# The following flags are next up for working on:
|
||||
|
Loading…
Reference in New Issue
Block a user