From 41c7e6b17cfcf3eb7c8df15ab6e38cca0fa4facb Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 19 Jun 2025 10:33:39 +0200 Subject: [PATCH] aux/indices: remove useless lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Presumably these were added to silence a "variable j not used" compiler warning, but "j" seems used in the loop counter. Reported by static analysis. Reviewed-by: Marek Olšák Reviewed-by: Ian Romanick Part-of: --- src/gallium/auxiliary/indices/u_indices_gen.py | 1 - src/gallium/auxiliary/indices/u_unfilled_gen.py | 1 - 2 files changed, 2 deletions(-) diff --git a/src/gallium/auxiliary/indices/u_indices_gen.py b/src/gallium/auxiliary/indices/u_indices_gen.py index 3df5f503670..4c5fc172a4d 100644 --- a/src/gallium/auxiliary/indices/u_indices_gen.py +++ b/src/gallium/auxiliary/indices/u_indices_gen.py @@ -176,7 +176,6 @@ def preamble(f: 'T.TextIO', intype, outtype, inpv, outpv, pr, prim, out_prim): f.write(' const ' + intype + '_t* restrict in = (const ' + intype + '_t* restrict)_in;\n') f.write(' ' + outtype + '_t * restrict out = (' + outtype + '_t* restrict)_out;\n') f.write(' unsigned i, j;\n') - f.write(' (void)j;\n') def postamble(f: 'T.TextIO'): f.write('}\n') diff --git a/src/gallium/auxiliary/indices/u_unfilled_gen.py b/src/gallium/auxiliary/indices/u_unfilled_gen.py index 95cd7a50bbd..3c5590d4107 100644 --- a/src/gallium/auxiliary/indices/u_unfilled_gen.py +++ b/src/gallium/auxiliary/indices/u_unfilled_gen.py @@ -124,7 +124,6 @@ def preamble(f: 'T.TextIO', intype, outtype, prim): f.write(' const ' + intype + '_t *in = (const ' + intype + '_t*)_in;\n') f.write(' ' + outtype + '_t *out = (' + outtype + '_t*)_out;\n') f.write(' unsigned i, j;\n') - f.write(' (void)j;\n') def postamble(f: 'T.TextIO'): f.write('}\n')