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
89d500c6a8
commit
a2f3563e84
@ -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