Add -Wshadow to the gcc command line options used when compiling the binutils.

Fix up all warnings generated by the addition of this switch.
This commit is contained in:
Nick Clifton
2009-12-11 13:42:17 +00:00
parent 01fe1b4183
commit 91d6fa6a03
228 changed files with 4810 additions and 4648 deletions

View File

@@ -1587,13 +1587,13 @@ operatorf (int *num_chars)
if (is_name_beginner (c))
{
char *name = input_line_pointer;
char c = get_symbol_end ();
char ec = get_symbol_end ();
ret = md_operator (name, 2, &c);
ret = md_operator (name, 2, &ec);
switch (ret)
{
case O_absent:
*input_line_pointer = c;
*input_line_pointer = ec;
input_line_pointer = name;
break;
case O_uminus:
@@ -1603,7 +1603,7 @@ operatorf (int *num_chars)
ret = O_illegal;
/* FALLTHROUGH */
default:
*input_line_pointer = c;
*input_line_pointer = ec;
*num_chars = input_line_pointer - name;
input_line_pointer = name;
return ret;