public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/committed] sim: cr16: cleanup unused variable compiler warnings
@ 2024-01-03  6:58 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2024-01-03  6:58 UTC (permalink / raw)
  To: gdb-patches

---
 sim/cr16/gencode.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/sim/cr16/gencode.c b/sim/cr16/gencode.c
index b0bb67b63c0b..4063bac62f0e 100644
--- a/sim/cr16/gencode.c
+++ b/sim/cr16/gencode.c
@@ -49,9 +49,6 @@ write_header (void)
 {
   int i = 0; 
 
-  /* Start searching from end of instruction table.  */
-  const inst *instruction = &cr16_instruction[NUMOPCODES - 1];
-
   /* Loop over instruction table until a full match is found.  */
   for ( ; i < NUMOPCODES; i++)
     printf("void OP_%lX_%X (SIM_DESC, SIM_CPU *);\t\t/* %s */\n",
@@ -66,7 +63,7 @@ write_header (void)
 static void
 write_template (void)
 {
-  int i = 0,j, k, flags;
+  int i = 0, j, k;
 
   printf ("#include \"defs.h\"\n");
   printf ("#include \"sim-main.h\"\n");
@@ -114,9 +111,10 @@ write_template (void)
 
 
 long Opcodes[512];
-static int curop=0;
 
 #if 0
+static int curop=0;
+
 static void
 check_opcodes( long op)
 {
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-03  6:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-03  6:58 [PATCH/committed] sim: cr16: cleanup unused variable compiler warnings Mike 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).