From: Mike Frysinger Date: Wed, 3 Jan 2024 06:54:57 +0000 (-0500) Subject: sim: cr16: cleanup unused variable compiler warnings X-Git-Tag: binutils-2_42~272 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50399b3d9dd2e7765cdd9a20c651d7c5b1e73b1e;p=thirdparty%2Fbinutils-gdb.git sim: cr16: cleanup unused variable compiler warnings --- diff --git a/sim/cr16/gencode.c b/sim/cr16/gencode.c index b0bb67b63c0..4063bac62f0 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) {