Drop an unused variable in the Debian-specific test.
authorPeter Pentchev <roam@debian.org>
Sun, 22 Aug 2021 10:57:08 +0000 (13:57 +0300)
committerPeter Pentchev <roam@debian.org>
Sun, 22 Aug 2021 11:10:00 +0000 (14:10 +0300)
Reported by: cppcheck

debian/tests/chunk.c

index 4201ced5e31ecbb6b3c531828e47c7649a945cb7..4b78d13d6a70dc59c2bc706c0ba9a733a284dc7b 100644 (file)
@@ -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));