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

index ed4f26cdb904879d29c18cfca1b83912d9f46087..7c461756d56379dd2184cf3ac6af84049544e6e1 100644 (file)
@@ -58,7 +58,6 @@ MY (deliver_interrupt) (SIM_CPU *current_cpu,
                        unsigned int vec)
 {
   unsigned char entryaddr_le[4];
-  int was_user;
   SIM_DESC sd = CPU_STATE (current_cpu);
   uint32_t entryaddr;
 
index 9142b88f7d7f2580bff1dffc1c23349066d613d1..6927012a5291278fbfba19e6781f7eb713d885c2 100644 (file)
@@ -443,11 +443,9 @@ hw_rv_send (struct hw *me,
            void *msg,
            unsigned int len_noheader)
 {
-  hw_rv_device *rv = (hw_rv_device *) hw_data (me);
   uint8_t buf[32+3];
   uint8_t *bufp;
   unsigned int len = len_noheader + 3;
-  int ret;
 
   buf[0] = len & 255;
   buf[1] = (len >> 8) & 255;
@@ -1048,7 +1046,6 @@ static void
 hw_rv_finish (struct hw *me)
 {
   hw_rv_device *rv = HW_ZALLOC (me, hw_rv_device);
-  int i;
   const struct hw_property *mem_prop;
   const struct hw_property *dummy_prop;
   const struct hw_property *mbox_prop;
index 12baafbf323dd3b2073b404c99322302b7647917..06803687ec7c3172ed36aa9ca81c6a05b359f24e 100644 (file)
@@ -338,7 +338,6 @@ static void
 cris_offset_sections (SIM_DESC sd, int offset)
 {
   struct bfd *abfd = STATE_PROG_BFD (sd);
-  asection *text;
   struct offsetinfo oi;
 
   /* Only happens for usage error.  */
@@ -499,7 +498,6 @@ static bfd_boolean
 cris_handle_interpreter (SIM_DESC sd, struct bfd *abfd)
 {
   int i, n_hdrs;
-  bfd_byte buf[4];
   char *interp = NULL;
   struct bfd *ibfd;
   bfd_boolean ok = FALSE;