Add -Winit-self to the kernel warning flags.
authorSascha Wildner <saw@online.de>
Tue, 25 Feb 2014 22:41:39 +0000 (23:41 +0100)
committerSascha Wildner <saw@online.de>
Tue, 25 Feb 2014 23:09:07 +0000 (00:09 +0100)
sys/conf/bsd.kern.mk

index e3329ed..57ae10f 100644 (file)
@@ -10,7 +10,7 @@
 CWARNFLAGS?=   -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
                -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
                -Wold-style-definition -Wold-style-declaration -Wno-inline \
-               -Wno-pointer-sign -std=c99
+               -Wno-pointer-sign -Winit-self -std=c99
 
 .if ${CCVER} == "gcc47"
 CWARNFLAGS+=   -Wno-unused-but-set-variable