gdb/microblaze-tdep.c: fix -Wunused-but-set-variable
Fix this, seen when building with clang 14: CXX microblaze-tdep.o /home/simark/src/binutils-gdb/gdb/microblaze-tdep.c:207:7: error: variable 'flags' set but not used [-Werror,-Wunused-but-set-variable] int flags = 0; ^ Change-Id: I59f726ed33e924912748bc475b6fd9a9394fc0d0
This commit is contained in:
parent
0cb857dcd0
commit
db94f15756
1 changed files with 0 additions and 3 deletions
|
@ -204,7 +204,6 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
|
|||
unsigned long insn;
|
||||
int rd, ra, rb, imm;
|
||||
enum microblaze_instr op;
|
||||
int flags = 0;
|
||||
int save_hidden_pointer_found = 0;
|
||||
int non_stack_instruction_found = 0;
|
||||
|
||||
|
@ -303,8 +302,6 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
|
|||
{
|
||||
/* We have a frame pointer. Note the register which is
|
||||
acting as the frame pointer. */
|
||||
flags |= MICROBLAZE_MY_FRAME_IN_FP;
|
||||
flags &= ~MICROBLAZE_MY_FRAME_IN_SP;
|
||||
cache->fp_regnum = rd;
|
||||
microblaze_debug ("Found a frame pointer: r%d\n", cache->fp_regnum);
|
||||
save_hidden_pointer_found = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue