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

@ -879,9 +879,9 @@ inform VPARAMS ((const char * message, ...))
}
static const char *
rvaafter (int machine)
rvaafter (int mach)
{
switch (machine)
switch (mach)
{
case MARM:
case M386:
@ -898,16 +898,16 @@ rvaafter (int machine)
break;
default:
/* xgettext:c-format */
fatal (_("Internal error: Unknown machine type: %d"), machine);
fatal (_("Internal error: Unknown machine type: %d"), mach);
break;
}
return "";
}
static const char *
rvabefore (int machine)
rvabefore (int mach)
{
switch (machine)
switch (mach)
{
case MARM:
case M386:
@ -924,16 +924,16 @@ rvabefore (int machine)
return ".rva\t";
default:
/* xgettext:c-format */
fatal (_("Internal error: Unknown machine type: %d"), machine);
fatal (_("Internal error: Unknown machine type: %d"), mach);
break;
}
return "";
}
static const char *
asm_prefix (int machine, const char *name)
asm_prefix (int mach, const char *name)
{
switch (machine)
switch (mach)
{
case MARM:
case MPPC:
@ -955,7 +955,7 @@ asm_prefix (int machine, const char *name)
return "_";
default:
/* xgettext:c-format */
fatal (_("Internal error: Unknown machine type: %d"), machine);
fatal (_("Internal error: Unknown machine type: %d"), mach);
break;
}
return "";
@ -1155,7 +1155,7 @@ def_stacksize (int reserve, int commit)
import_list. It is used by def_import. */
static void
append_import (const char *symbol_name, const char *dll_name, int func_ordinal,
append_import (const char *symbol_name, const char *dllname, int func_ordinal,
const char *its_name)
{
iheadtype **pq;
@ -1163,7 +1163,7 @@ append_import (const char *symbol_name, const char *dll_name, int func_ordinal,
for (pq = &import_list; *pq != NULL; pq = &(*pq)->next)
{
if (strcmp ((*pq)->dllname, dll_name) == 0)
if (strcmp ((*pq)->dllname, dllname) == 0)
{
q = *pq;
q->functail->next = xmalloc (sizeof (ifunctype));
@ -1178,7 +1178,7 @@ append_import (const char *symbol_name, const char *dll_name, int func_ordinal,
}
q = xmalloc (sizeof (iheadtype));
q->dllname = xstrdup (dll_name);
q->dllname = xstrdup (dllname);
q->nfuncs = 1;
q->funchead = xmalloc (sizeof (ifunctype));
q->functail = q->funchead;