From 072fcb16f449262ea5d824248c04dff23cca73fc Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Mon, 8 Jun 2020 21:08:52 -0700 Subject: [PATCH] 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; --- test/infcover.c | 1 + 1 file changed, 1 insertion(+) 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 */ } -- 2.47.2