aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 20:08:13 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 22:31:21 -0700
commit49b556efb55f50d6cd3db39e05edc84df1c3cb69 (patch)
tree1cfcbb4bb45b23232dea33ea977a6105c3446989 /sim
parent0e12bb132e9a7de8cb234b21526b301e63705420 (diff)
downloadgdb-49b556efb55f50d6cd3db39e05edc84df1c3cb69.zip
gdb-49b556efb55f50d6cd3db39e05edc84df1c3cb69.tar.gz
gdb-49b556efb55f50d6cd3db39e05edc84df1c3cb69.tar.bz2
sim: sh: fix -Wunused-but-set-variable warnings
Diffstat (limited to 'sim')
-rw-r--r--sim/sh/interp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index 2e2e136..1982b7f 100644
--- a/sim/sh/interp.c
+++ b/sim/sh/interp.c
@@ -1667,10 +1667,8 @@ dump_profile (void)
{
unsigned int minpc;
unsigned int maxpc;
- unsigned short *p;
int i;
- p = saved_state.asregs.profile_hist;
minpc = 0;
maxpc = (1 << sim_profile_size);