diff --git a/share/mk/bsd.kern.mk b/share/mk/bsd.kern.mk new file mode 100644 index 000000000000..023612392e36 --- /dev/null +++ b/share/mk/bsd.kern.mk @@ -0,0 +1,15 @@ +# $Id$ + +# +# Warning flags for compiling the kernel and components of the kernel. +# +CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \ + -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \ + -Winline -Wunused -Wpointer-arith -Wcast-qual +# +# The following flags are next up for working on: +# -Wformat -Wall +# +# When working on removing warnings from code, the `-Werror' flag should be +# of material assistance. +# diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk new file mode 100644 index 000000000000..023612392e36 --- /dev/null +++ b/sys/conf/kern.mk @@ -0,0 +1,15 @@ +# $Id$ + +# +# Warning flags for compiling the kernel and components of the kernel. +# +CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \ + -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \ + -Winline -Wunused -Wpointer-arith -Wcast-qual +# +# The following flags are next up for working on: +# -Wformat -Wall +# +# When working on removing warnings from code, the `-Werror' flag should be +# of material assistance. +#