public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: mn10300: fix -Wunused-variable warnings
@ 2023-12-19 10:53 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-19 10:53 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7704565d2f9cdc5280a18e50f428fc5969309390
commit 7704565d2f9cdc5280a18e50f428fc5969309390
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Dec 15 22:11:32 2023 -0500
sim: mn10300: fix -Wunused-variable warnings
Diff:
---
sim/mn10300/dv-mn103tim.c | 6 ------
sim/mn10300/interp.c | 3 ---
2 files changed, 9 deletions(-)
diff --git a/sim/mn10300/dv-mn103tim.c b/sim/mn10300/dv-mn103tim.c
index 60cfbf8f898..95ebc82b9e0 100644
--- a/sim/mn10300/dv-mn103tim.c
+++ b/sim/mn10300/dv-mn103tim.c
@@ -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:
{
diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c
index 91b742c7276..8a3f73c9aa4 100644
--- a/sim/mn10300/interp.c
+++ b/sim/mn10300/interp.c
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-19 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19 10:53 [binutils-gdb] sim: mn10300: fix -Wunused-variable warnings Michael Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).