summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-09-05 20:57:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-09-05 20:57:21 +0000
commit86a63858722c4a6ddbfd91ab664113ace7a4c16a (patch)
treeaa860437f6f1c38a9418c02d8c99839cf1cb0bec /gnu/usr.bin
parent924f96da00826344dbc4ed9a85f8a6e699959ab3 (diff)
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.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gcc/gcc/toplev.c2
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