public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: h8300: fix -Wunused-but-set-variable warnings
@ 2023-12-08 5:31 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-08 5:31 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7368a2cf739f21a35a9ff91710fab3648e588c2e
commit 7368a2cf739f21a35a9ff91710fab3648e588c2e
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Dec 6 20:07:34 2023 -0700
sim: h8300: fix -Wunused-but-set-variable warnings
Diff:
---
sim/h8300/compile.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index a4b39ae3380..96254ea916d 100644
--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -2792,7 +2792,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
struct stat stat_rec; /* Stat record */
int fstat_return; /* Return value from callback to stat. */
int stat_ptr; /* Pointer to stat record. */
- char *temp_stat_ptr; /* Temporary stat_rec pointer. */
fd = (h8300hmode && !h8300_normal_mode) ? GET_L_REG (0) : GET_W_REG (0);
@@ -2803,9 +2802,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
fstat_return = sim_callback->to_fstat (sim_callback, fd,
&stat_rec);
- /* Have stat_ptr point to starting of stat_rec. */
- temp_stat_ptr = (char *) (&stat_rec);
-
/* Setting up the stat structure returned. */
SET_MEMORY_W (stat_ptr, stat_rec.st_dev);
stat_ptr += 2;
@@ -2843,7 +2839,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
struct stat stat_rec; /* Stat record */
int stat_return; /* Return value from callback to stat */
int stat_ptr; /* Pointer to stat record. */
- char *temp_stat_ptr; /* Temporary stat_rec pointer. */
int i = 0; /* Loop Counter */
/* Setting filename_ptr to first argument of open. */
@@ -2877,9 +2872,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
stat_return =
sim_callback->to_stat (sim_callback, filename, &stat_rec);
- /* Have stat_ptr point to starting of stat_rec. */
- temp_stat_ptr = (char *) (&stat_rec);
-
/* Freeing memory used for filename. */
free (filename);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-08 5:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08 5:31 [binutils-gdb] sim: h8300: fix -Wunused-but-set-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).