diff options
author | Martin Storsjö <martin@martin.st> | 2021-06-02 10:52:19 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-06-02 13:35:20 +0300 |
commit | 90dad3ee579644e5b3921416a9f7e9ba3f29eb97 (patch) | |
tree | dc00e439c168a15852600a04ddef39c0579c8f38 /tests | |
parent | d2a3f5b47436ffe0dc8d0c80b40ac53ca7eac15b (diff) |
checkasm: Remove an unused variable/parameter
Clang 13 got support for warning about variables that are set but
not used. We disable warnings for unused parameters, but in this case,
the parameter variable is updated within the function too, which
Clang warns about.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checkasm/loopfilter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/checkasm/loopfilter.c b/tests/checkasm/loopfilter.c index aabf54f..438f080 100644 --- a/tests/checkasm/loopfilter.c +++ b/tests/checkasm/loopfilter.c @@ -33,13 +33,12 @@ #include "src/loopfilter.h" static void init_lpf_border(pixel *const dst, const ptrdiff_t stride, - int E, int I, int H, const int bitdepth_max) + int E, int I, const int bitdepth_max) { const int bitdepth_min_8 = bitdepth_from_max(bitdepth_max) - 8; const int F = 1 << bitdepth_min_8; E <<= bitdepth_min_8; I <<= bitdepth_min_8; - H <<= bitdepth_min_8; const int filter_type = rnd() % 4; const int edge_diff = rnd() % ((E + 2) * 4) - 2 * (E + 2); @@ -171,7 +170,7 @@ static void check_lpf_sb(loopfilter_sb_fn fn, const char *const name, L = l[2 * x + 1][lf_idx] ? l[2 * x + 1][lf_idx] : l[2 * x][lf_idx]; } init_lpf_border(c_dst + i * (dir ? 1 : 16), dir ? 128 : 1, - lut.e[L], lut.i[L], L >> 4, bitdepth_max); + lut.e[L], lut.i[L], bitdepth_max); } memcpy(a_dst_mem, c_dst_mem, 128 * sizeof(pixel) * 16); |