From: Peter Pentchev Date: Sun, 22 Aug 2021 10:57:08 +0000 (+0300) Subject: Drop an unused variable in the Debian-specific test. X-Git-Tag: archive/raspbian/1.2.1+ds1-1+rpi1~1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3b29fd16e27c123bd8ad24ffc921309446e765ee;p=zchunk.git Drop an unused variable in the Debian-specific test. Reported by: cppcheck --- diff --git a/debian/tests/chunk.c b/debian/tests/chunk.c index 4201ced..4b78d13 100644 --- a/debian/tests/chunk.c +++ b/debian/tests/chunk.c @@ -13,7 +13,6 @@ struct chunk_stuff { static struct chunk_stuff get_second_chunk(struct zckCtx * const zck, const size_t chunk_count) { - size_t idx = 0; zckChunk *chunk = zck_get_first_chunk(zck); if (chunk == NULL) errx(1, "zck_get_first_chunk() failed: %s", zck_get_error(zck));