diff options
author | ru <ru@FreeBSD.org> | 2006-05-30 19:18:01 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-05-30 19:18:01 +0000 |
commit | dc7d7b0c51e05e2da15bb9ec33cf9c5385e4f3fc (patch) | |
tree | b6ddb716e69da562fc59ba516e1c2e4ec379224d /sys/conf | |
parent | 74aa397f1619d246d48e795d18ac2af7027c0ef5 (diff) | |
download | FreeBSD-src-dc7d7b0c51e05e2da15bb9ec33cf9c5385e4f3fc.zip FreeBSD-src-dc7d7b0c51e05e2da15bb9ec33cf9c5385e4f3fc.tar.gz |
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.
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 54c5905..cea8af1 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -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: |