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) | |
| download | Project-Tick-0b39a43490aea6024cc57bb577be58c675142d6d.tar.gz Project-Tick-0b39a43490aea6024cc57bb577be58c675142d6d.zip | |
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 5736a66101..e94ee33f8b 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 } |
