From: Nathan Moinvaziri Date: Tue, 9 Jun 2020 04:08:52 +0000 (-0700) Subject: Fixed clang static analysis warning value stored is never read in infcover. X-Git-Tag: 1.9.9-b1~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=072fcb16f449262ea5d824248c04dff23cca73fc;p=thirdparty%2Fzlib-ng.git Fixed clang static analysis warning value stored is never read in infcover. infcover.c:466:5: warning: Value stored to 'buf' is never read [deadcode.DeadStores] buf += len; --- diff --git a/test/infcover.c b/test/infcover.c index 4b99a0c6..10baaad5 100644 --- a/test/infcover.c +++ b/test/infcover.c @@ -464,6 +464,7 @@ static unsigned pull(void *desc, const unsigned char **buf) { static int push(void *desc, unsigned char *buf, unsigned len) { buf += len; + (void)buf; return desc != NULL; /* force error if desc not null */ }