diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-07-26 19:58:59 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-07-26 19:58:59 +0000 |
commit | 131bdb7794c86a062dca621335409bb94b0f9bff (patch) | |
tree | 5e3181a5b2810dfdb2f6647f409e9bd9530372d1 | |
parent | 5e1bbf6269f68077958d1b9cc6c6fe77e39ffe17 (diff) |
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@
-rw-r--r-- | gnu/gcc/gcc/common.opt | 2 | ||||
-rw-r--r-- | 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. */ |