PATCH; Remove a local variable in i386-gen.c
H.J. Lu
hjl@lucon.org
Sun Sep 9 16:05:00 GMT 2007
When both CpuUnused and OTUnused are defined, compiler may warn that
"unused" is unused. I checked in this patch to fix it.
H.J.
----
2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (main): Remove the local variable, unused.
--- i386-gen.c.foo 2007-09-08 19:49:31.000000000 -0700
+++ i386-gen.c 2007-09-09 08:59:13.000000000 -0700
@@ -887,7 +887,7 @@ main (int argc, char **argv)
{
extern int chdir (char *);
char *srcdir = NULL;
- int c, unused;
+ int c;
FILE *table;
program_name = *argv;
@@ -924,16 +924,16 @@ main (int argc, char **argv)
/* Check the unused bitfield in i386_cpu_flags. */
#ifndef CpuUnused
- unused = CpuNumOfBits - CpuMax - 1;
- if (unused)
- fail (_("%d unused bits in i386_cpu_flags.\n"), unused);
+ c = CpuNumOfBits - CpuMax - 1;
+ if (c)
+ fail (_("%d unused bits in i386_cpu_flags.\n"), c);
#endif
/* Check the unused bitfield in i386_operand_type. */
#ifndef OTUnused
- unused = OTNumOfBits - OTMax - 1;
- if (unused)
- fail (_("%d unused bits in i386_operand_type.\n"), unused);
+ c = OTNumOfBits - OTMax - 1;
+ if (c)
+ fail (_("%d unused bits in i386_operand_type.\n"), c);
#endif
qsort (cpu_flags, ARRAY_SIZE (cpu_flags), sizeof (cpu_flags [0]),
More information about the Binutils
mailing list