[PATCH] __FreeBSD_cc_version in <sys/cdefs.h>
Robert Millan
rmh at debian.org
Tue Jul 5 13:36:03 UTC 2011
2011/7/5 Dimitry Andric <dim at freebsd.org>:
> As far as I can see, this code only gives warnings when compiled with
> gcc 4.5 or higher, and when using the -Wundef flag. Isn't it easier to
> just remove the -Wundef flag here?
Here's a patch to remove -Wundef. I think it's a bad idea however,
IMHO it's better to fix the cause of the warning instead.
--
Robert Millan
-------------- next part --------------
Index: sys/conf/kern.mk
===================================================================
--- sys/conf/kern.mk (revision 223736)
+++ sys/conf/kern.mk (working copy)
@@ -5,7 +5,7 @@
#
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
- -Wundef -Wno-pointer-sign -fformat-extensions \
+ -Wno-pointer-sign -fformat-extensions \
-Wmissing-include-dirs -fdiagnostics-show-option
#
# The following flags are next up for working on:
More information about the freebsd-hackers
mailing list