aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Cran <brucec@FreeBSD.org>2011-05-24 09:01:56 +0000
committerRebecca Cran <brucec@FreeBSD.org>2011-05-24 09:01:56 +0000
commit12dd58a3198ece862d1c341218ca2814fbf94b34 (patch)
treebe1cdfa1ee03e24c59b583655048b042e6cc86e9
parent9f8cab7fc21d921c4ac0dccc2b4401a9813ef0a4 (diff)
downloadsrc-12dd58a3198ece862d1c341218ca2814fbf94b34.tar.gz
src-12dd58a3198ece862d1c341218ca2814fbf94b34.zip
Remove an outdated comment as requested by Bruce Evans in a private email to
Alexander Best (arundel@). For clang, -fdiagnostics-show-option is enabled by default, but for gcc it isn't. This option will report which -W* flag was responsible for triggering a certain warning. This will bring gcc warnings closer to the ones clang emits and might also help developers track down tinderbox failures a bit quicker. Submitted by: arundel
Notes
Notes: svn path=/head/; revision=222248
-rw-r--r--sys/conf/kern.mk7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 58ab6eebf010..a0a595f50645 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -1,15 +1,12 @@
# $FreeBSD$
#
-# Warning flags for compiling the kernel and components of the kernel.
+# Warning flags for compiling the kernel and components of the kernel:
#
-# Note that the newly added -Wcast-qual is responsible for generating
-# most of the remaining warnings. Warnings introduced with -Wall will
-# also pop up, but are easier to fix.
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
-Wundef -Wno-pointer-sign -fformat-extensions \
- -Wmissing-include-dirs
+ -Wmissing-include-dirs -fdiagnostics-show-option
#
# The following flags are next up for working on:
# -Wextra