]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: mn10300: fix -Wunused-variable warnings
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Dec 2023 03:11:32 +0000 (22:11 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 19 Dec 2023 10:51:11 +0000 (05:51 -0500)
sim/mn10300/dv-mn103tim.c
sim/mn10300/interp.c

index 60cfbf8f898c9314d6dc847dca256beadc132c5e..95ebc82b9e0484ad36469639c831162c1a744a79 100644 (file)
@@ -474,8 +474,6 @@ read_special_timer6_reg (struct hw *me,
                         void *dest,
                         unsigned  nr_bytes)
 {
-  uint32_t val;
-
   switch (nr_bytes) {
   case 1:
     {
@@ -612,7 +610,6 @@ do_counter6_event (struct hw *me,
 {
   struct mn103tim *timers = hw_data(me);
   long timer_nr = (uintptr_t) data;
-  int next_timer;
 
   /* Check if counting is still enabled. */
   if ( (timers->reg[timer_nr].mode & count_mask) != 0 )
@@ -641,7 +638,6 @@ write_base_reg (struct hw *me,
                const void *source,
                unsigned  nr_bytes)
 {
-  unsigned i;
   const uint8_t *buf8 = source;
   const uint16_t *buf16 = source;
 
@@ -931,8 +927,6 @@ write_special_timer6_reg (struct hw *me,
                          const void *source,
                          unsigned  nr_bytes)
 {
-  uint32_t val;
-
   switch (nr_bytes) {
   case 1:
     {
index 91b742c72766232cd74a089f988de22556048994..8a3f73c9aa43f1a263b10d619cee5d8d04e95e38 100644 (file)
@@ -35,7 +35,6 @@ mn10300_option_handler (SIM_DESC sd,
                        char *arg,
                        int is_command)
 {
-  int cpu_nr;
   switch (opt)
     {
     case OPTION_BOARD:
@@ -392,8 +391,6 @@ program_interrupt (SIM_DESC sd,
                   sim_cia cia,
                   SIM_SIGNAL sig)
 {
-  int status;
-  struct hw *device;
   static int in_interrupt = 0;
 
 #ifdef SIM_CPU_EXCEPTION_TRIGGER