diff options
author | 2010-07-26 19:58:58 +0000 | |
---|---|---|
committer | 2010-07-26 19:58:58 +0000 | |
commit | 763c929c4e31b42c8124a241586a40d6045ff22f (patch) | |
tree | 6bbaa2353042961cc0eee3713df49ffc064d80a5 | |
parent | Remove unused structure members (diff) | |
download | wireguard-openbsd-763c929c4e31b42c8124a241586a40d6045ff22f.tar.xz wireguard-openbsd-763c929c4e31b42c8124a241586a40d6045ff22f.zip |
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. */ |