]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
disasm-test: Remove an unused variable.
authorFlorian Krohm <flo2030@eich-krohm.de>
Fri, 13 Mar 2026 15:56:46 +0000 (15:56 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Fri, 13 Mar 2026 15:56:46 +0000 (15:56 +0000)
Found by clang.

none/tests/s390x/disasm-test/main.c

index 286c9ef4030671ea00bb9610be8bf49404f70c55..a95420859fbcf09a79e7a3010b3f52e95b31df9b 100644 (file)
@@ -199,7 +199,7 @@ main(int argc, char *argv[])
          rc += num_tests != num_spec_exc;
       }
       if (mode & GEN_NO_SPEC_EXC) {
-         unsigned num_tests = 0, num_spec_exc = 0;
+         unsigned num_spec_exc = 0;
          if (verbose)
             printf("Looking for unexpected specification exceptions\n");
 
@@ -209,7 +209,6 @@ main(int argc, char *argv[])
             opcode *opc = get_opcode_by_name(name);  // never NULL
 
             test_stats stats = run_opcode(opc, /* gen-spec-exc-tests */ 0);
-            num_tests    += stats.num_generated;
             num_spec_exc += stats.num_spec_exc;
          }
          rc += num_spec_exc != 0;