From: Nathan Moinvaziri Date: Tue, 9 Jun 2020 04:12:58 +0000 (-0700) Subject: Fixed variable set but not used static analysis warning in example. X-Git-Tag: 1.9.9-b1~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b39a43490aea6024cc57bb577be58c675142d6d;p=thirdparty%2Fzlib-ng.git Fixed variable set but not used static analysis warning in example. example.c:84:14: warning: variable ‘read’ set but not used [-Wunused-but-set-variable] int err, read; example.c:198:5: warning: Value stored to 'read' is never read [deadcode.DeadStores] read = PREFIX(gzfread)(uncompr, uncomprLen, 1, file); --- diff --git a/test/example.c b/test/example.c index 5736a661..e94ee33f 100644 --- a/test/example.c +++ b/test/example.c @@ -227,7 +227,7 @@ void test_gzio(const char *fname, unsigned char *uncompr, z_size_t uncomprLen) { fprintf(stderr, "gzclose unexpected return when handle null\n"); exit(1); } - + (void)read; #endif }