mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
Fix compile time warnings building the binutils with a gcc6 compiler.
include * opcode/metag.h (metag_scondtab): Mark as possibly unused. * opcode/nds32.h (nds32_r45map): Likewise. (nds32_r54map): Likewise. * opcode/visium.h (gen_reg_table): Likewise. (fp_reg_table, cc_table, opcode_table): Likewise. bfd * oasys.c (oasys_archive_p): Fix indentation. * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned constant for left shifting.
This commit is contained in:
@ -36,13 +36,13 @@
|
||||
#define REG_SP 31
|
||||
|
||||
/* Macros for extracting fields or making an instruction. */
|
||||
static const int nds32_r45map[] =
|
||||
static const int nds32_r45map[] ATTRIBUTE_UNUSED =
|
||||
{
|
||||
0, 1, 2, 3, 4, 5, 6, 7,
|
||||
8, 9, 10, 11, 16, 17, 18, 19
|
||||
};
|
||||
|
||||
static const int nds32_r54map[] =
|
||||
static const int nds32_r54map[] ATTRIBUTE_UNUSED =
|
||||
{
|
||||
0, 1, 2, 3, 4, 5, 6, 7,
|
||||
8, 9, 10, 11, -1, -1, -1, -1,
|
||||
|
Reference in New Issue
Block a user