diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-09-09 16:02:17 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-09-09 16:02:17 +0000 |
commit | 8b40d5948eb84f74b71bcb355dcfd5a6149dc452 (patch) | |
tree | 2b6ccbbc3e514cca64fcadc1641eb3ea44311b3a /opcodes | |
parent | 6d18b86b5d4f89f0a20b6d3dd174818901ea2e31 (diff) | |
download | gdb-8b40d5948eb84f74b71bcb355dcfd5a6149dc452.zip gdb-8b40d5948eb84f74b71bcb355dcfd5a6149dc452.tar.gz gdb-8b40d5948eb84f74b71bcb355dcfd5a6149dc452.tar.bz2 |
2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (main): Remove the local variable, unused.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/i386-gen.c | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 0e91e22..6ba7d49 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2007-09-09 H.J. Lu <hongjiu.lu@intel.com> + + * i386-gen.c (main): Remove the local variable, unused. + 2007-09-08 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am: Run "make dep-am". diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 44bf052..36009cd 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -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]), |