aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/func.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 20:07:11 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 21:41:27 -0700
commit89d7fc2ab0b8d37c66fb39d68246df51c7669831 (patch)
treede86d8ab8c7d086b1f65b2fc7d220548da6821dc /sim/erc32/func.c
parenta886474a62e836a0997f9aba59b957e2adc8926e (diff)
downloadgdb-89d7fc2ab0b8d37c66fb39d68246df51c7669831.zip
gdb-89d7fc2ab0b8d37c66fb39d68246df51c7669831.tar.gz
gdb-89d7fc2ab0b8d37c66fb39d68246df51c7669831.tar.bz2
sim: erc32: fix -Wunused-but-set-variable warnings
Diffstat (limited to 'sim/erc32/func.c')
-rw-r--r--sim/erc32/func.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sim/erc32/func.c b/sim/erc32/func.c
index 85f7181..f1b230a 100644
--- a/sim/erc32/func.c
+++ b/sim/erc32/func.c
@@ -687,11 +687,8 @@ int_handler(int32_t sig)
void
init_signals(void)
{
- typedef void (*PFI) ();
- static PFI int_tab[2];
-
- int_tab[0] = signal(SIGTERM, int_handler);
- int_tab[1] = signal(SIGINT, int_handler);
+ signal(SIGTERM, int_handler);
+ signal(SIGINT, int_handler);
}
@@ -706,7 +703,6 @@ disp_fpu(struct pstate *sregs)
{
int i;
- float t;
printf("\n fsr: %08X\n\n", sregs->fsr);
@@ -716,7 +712,6 @@ disp_fpu(struct pstate *sregs)
#endif
for (i = 0; i < 32; i++) {
- t = sregs->fs[i];
printf(" f%02d %08x %14e ", i, sregs->fsi[i], sregs->fs[i]);
if (!(i & 1))
printf("%14e\n", sregs->fd[i >> 1]);
@@ -1006,7 +1001,6 @@ bfd_load (const char *fname)
{
asection *section;
bfd *pbfd;
- const bfd_arch_info_type *arch;
int i;
pbfd = bfd_openr(fname, 0);
@@ -1020,7 +1014,6 @@ bfd_load (const char *fname)
return -1;
}
- arch = bfd_get_arch_info (pbfd);
if (sis_verbose)
printf("loading %s:", fname);
for (section = pbfd->sections; section; section = section->next) {