From 86a63858722c4a6ddbfd91ab664113ace7a4c16a Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 5 Sep 2013 20:57:21 +0000 Subject: 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. --- gnu/usr.bin/gcc/gcc/toplev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3