diff options
author | Maciej W. Rozycki <macro@mips.com> | 2018-05-16 20:43:29 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@mips.com> | 2018-05-16 20:43:29 +0100 |
commit | 1624c9ca3fd32bf25b2cb63f99270abe41f718f5 (patch) | |
tree | d60ab1960db91717eb6bf3db685e464393195407 /bfd/elf32-nds32.c | |
parent | 06333fea767dc1eaf88ac286293fcbaa0ef2de9e (diff) | |
download | gdb-1624c9ca3fd32bf25b2cb63f99270abe41f718f5.zip gdb-1624c9ca3fd32bf25b2cb63f99270abe41f718f5.tar.gz gdb-1624c9ca3fd32bf25b2cb63f99270abe41f718f5.tar.bz2 |
NDS32/BFD: Fix build error in `nds32_convert_32_to_16'
Fix:
cc1: warnings being treated as errors
.../bfd/elf32-nds32.c: In function 'nds32_convert_32_to_16':
.../bfd/elf32-nds32.c:6816: error: 'insn_type' may be used uninitialized in this function
make[4]: *** [elf32-nds32.lo] Error 1
seen with GCC 4.1.2 and 4.4.7.
bfd/
* elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
Diffstat (limited to 'bfd/elf32-nds32.c')
-rw-r--r-- | bfd/elf32-nds32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c index 61f4800..1b30d12 100644 --- a/bfd/elf32-nds32.c +++ b/bfd/elf32-nds32.c @@ -6808,7 +6808,7 @@ nds32_convert_32_to_16 (bfd *abfd, uint32_t insn, uint16_t *pinsn16, { int op6; uint16_t insn16 = 0; - int insn_type; + int insn_type = 0; unsigned long mach = bfd_get_mach (abfd); /* Decode 32-bit instruction. */ |