|
From: Florian K. <fk...@so...> - 2026-03-13 16:05:04
|
https://sourceware.org/cgit/valgrind/commit/?id=cfbdbe8232809ca69b218362954de6979e471776 commit cfbdbe8232809ca69b218362954de6979e471776 Author: Florian Krohm <fl...@ei...> Date: Fri Mar 13 15:56:46 2026 +0000 disasm-test: Remove an unused variable. Found by clang. Diff: --- none/tests/s390x/disasm-test/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/none/tests/s390x/disasm-test/main.c b/none/tests/s390x/disasm-test/main.c index 286c9ef403..a95420859f 100644 --- a/none/tests/s390x/disasm-test/main.c +++ b/none/tests/s390x/disasm-test/main.c @@ -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; |