2011/7/5 Dimitry Andric <[email protected]>:
> 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
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:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"