diff options
author | 2013-09-05 20:57:20 +0000 | |
---|---|---|
committer | 2013-09-05 20:57:20 +0000 | |
commit | 9c0d4e8bf90cd8fcae89527092b459963388f994 (patch) | |
tree | d5d47e643565ab93a810ca8f902952ecadb386d3 | |
parent | Most network drivers include netinet/in_var.h, but apparently they (diff) | |
download | wireguard-openbsd-9c0d4e8bf90cd8fcae89527092b459963388f994.tar.xz wireguard-openbsd-9c0d4e8bf90cd8fcae89527092b459963388f994.zip |
gcc4 has phased out -W in favor of -Wextra. Teach gcc3 to recognize -Wextra
as an ersatz for -W. Now that more and more third-party software assumes the
compiler supports -Wextra, this is definitely worth doing.
-rw-r--r-- | gnu/usr.bin/gcc/gcc/toplev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/gcc/toplev.c b/gnu/usr.bin/gcc/gcc/toplev.c index 40b13a95d6e..23301a13fcf 100644 --- a/gnu/usr.bin/gcc/gcc/toplev.c +++ b/gnu/usr.bin/gcc/gcc/toplev.c @@ -4479,7 +4479,7 @@ independent_decode_option (argc, argv) break; case 'W': - if (arg[1] == 0) + if (arg[1] == 0 || !strcmp (arg, "Wextra")) { extra_warnings = 1; /* We save the value of warn_uninitialized, since if they put |