From: guenther Date: Mon, 26 Jul 2010 19:58:58 +0000 (+0000) Subject: Turn on -Wsystem-headers by default, so that glitches in our headers X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=763c929c4e31b42c8124a241586a40d6045ff22f;p=openbsd Turn on -Wsystem-headers by default, so that glitches in our headers aren't silently ignored but rather get warned about and fixed. Purely stylistic warnings like -Wredundant-decls are your own problem however. testing help from landry@, header fixes from kettenis@ ok deraadt@ --- diff --git a/gnu/gcc/gcc/common.opt b/gnu/gcc/gcc/common.opt index 57f7ed1a713..d0d861169e5 100644 --- a/gnu/gcc/gcc/common.opt +++ b/gnu/gcc/gcc/common.opt @@ -158,7 +158,7 @@ Common Var(warn_switch_enum) Warn about all enumerated switches missing a specific case Wsystem-headers -Common Var(warn_system_headers) +Common Var(warn_system_headers) Init(1) Do not suppress warnings from system headers Wuninitialized diff --git a/gnu/usr.bin/gcc/gcc/toplev.c b/gnu/usr.bin/gcc/gcc/toplev.c index 0964afb0c00..4638a371856 100644 --- a/gnu/usr.bin/gcc/gcc/toplev.c +++ b/gnu/usr.bin/gcc/gcc/toplev.c @@ -1446,7 +1446,7 @@ int inhibit_warnings = 0; /* Don't suppress warnings from system headers. -Wsystem-headers. */ -int warn_system_headers = 0; +int warn_system_headers = 1; /* Print various extra warnings. -W. */