summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.kern.mk
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-10-08 22:10:49 +0000
committerbde <bde@FreeBSD.org>1996-10-08 22:10:49 +0000
commit81e1e3c10eed0d428189690ad89d501b79d68691 (patch)
tree3944ab2f2497c6d6397b465981b130ef2d2d10b1 /share/mk/bsd.kern.mk
parentfa51fcfcddd49120686066ecfeffeceac59814d5 (diff)
downloadFreeBSD-src-81e1e3c10eed0d428189690ad89d501b79d68691.zip
FreeBSD-src-81e1e3c10eed0d428189690ad89d501b79d68691.tar.gz
Oops, forgot to cvs add bsd.kern.mk.
Centralized the definition of CWARNFLAGS into bsd.kern.mk.
Diffstat (limited to 'share/mk/bsd.kern.mk')
-rw-r--r--share/mk/bsd.kern.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/mk/bsd.kern.mk b/share/mk/bsd.kern.mk
new file mode 100644
index 0000000..0236123
--- /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.
+#
OpenPOWER on IntegriCloud