From 763c929c4e31b42c8124a241586a40d6045ff22f Mon Sep 17 00:00:00 2001 From: guenther Date: Mon, 26 Jul 2010 19:58:58 +0000 Subject: [PATCH] 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@ --- gnu/gcc/gcc/common.opt | 2 +- gnu/usr.bin/gcc/gcc/toplev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.20.1