mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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:
@@ -73,7 +73,7 @@ static bfd_boolean
|
||||
initialize_mmix_dis_info (struct disassemble_info *info)
|
||||
{
|
||||
struct mmix_dis_info *minfop = malloc (sizeof (struct mmix_dis_info));
|
||||
int i;
|
||||
long i;
|
||||
|
||||
if (minfop == NULL)
|
||||
return FALSE;
|
||||
@@ -98,7 +98,6 @@ initialize_mmix_dis_info (struct disassemble_info *info)
|
||||
long symsize = bfd_get_symtab_upper_bound (abfd);
|
||||
asymbol **syms = malloc (symsize);
|
||||
long nsyms;
|
||||
long i;
|
||||
|
||||
if (syms == NULL)
|
||||
{
|
||||
@@ -125,7 +124,7 @@ initialize_mmix_dis_info (struct disassemble_info *info)
|
||||
for (i = 0; i < 256; i++)
|
||||
if (minfop->reg_name[i] == NULL)
|
||||
{
|
||||
sprintf (minfop->basic_reg_name[i], "$%d", i);
|
||||
sprintf (minfop->basic_reg_name[i], "$%ld", i);
|
||||
minfop->reg_name[i] = minfop->basic_reg_name[i];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user