Martin Sebor wrote:
Liviu Nicoara wrote:

A minor issue: -Wextra in gcc.config added for CXX_MAJOR != 2 breaks gcc
builds. AFAICT, it's a valid option starting with 3.4.x.
[...]
But let me double-check that -Wextra is different than -W -- the
manual says they are the same but I could have sworn I've seen
it emit warnings not seen without it:
http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/Warning-Options.html#index-W-240

They really are the same -- below is the code from gcc 4.0.2 opts.c.
I removed the option from gcc.config with r367459.

   708      case OPT_W:
   709        /* For backward compatibility, -W is the same as -Wextra.  */
   710        set_Wextra (value);
   711        break;
   712
   713      case OPT_Wextra:
   714        set_Wextra (value);
   715        break;

Martin

Reply via email to