diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2020-06-08 21:12:58 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-06-09 08:32:24 +0200 |
commit | 0b39a43490aea6024cc57bb577be58c675142d6d (patch) | |
tree | a51e80d667a45ab59f01bf955dcd2dbde3075f6b /test/example.c | |
parent | 072fcb16f449262ea5d824248c04dff23cca73fc (diff) |
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);
Diffstat (limited to 'test/example.c')
-rw-r--r-- | test/example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example.c b/test/example.c index 5736a66..e94ee33 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 } |