https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70275

Kevin Tucker <kevin-tucker at cox dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kevin-tucker at cox dot net

--- Comment #1 from Kevin Tucker <kevin-tucker at cox dot net> ---
Tried example on 5.3.0 on Cygwin and got reported results.  
Found similar results for unused variable warnings with following source:
int main()
{
  int i;
  return 0;
}

Compiled with:
gcc -w -Werror=unused-variable -Wunused-variable unused.cpp

Gives no error

Also tried w/v6.0 (updated and built from r234482 of
svn://gcc.gnu.org/svn/gcc/trunk) and got same results.

However, I would think that if "-w" is given, then there are no warnings to
promote to errors, since warnings are disabled.

Reply via email to