From: gtsoul-tech Date: Thu, 30 May 2024 13:40:47 +0000 (+0300) Subject: deadcode.DeadStores X-Git-Tag: vectorscan/5.4.12^2~27^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c0beb57f8cef66c823e20786537f3af80d4a851;p=thirdparty%2Fvectorscan.git deadcode.DeadStores --- diff --git a/tools/hsbench/heapstats.cpp b/tools/hsbench/heapstats.cpp index 5fba7c2a..335b21eb 100644 --- a/tools/hsbench/heapstats.cpp +++ b/tools/hsbench/heapstats.cpp @@ -72,9 +72,8 @@ size_t getPeakHeap(void) { char *line = nullptr; size_t len = 0, maxheap = 0; - ssize_t read; - while ((read = getline(&line, &len, fstr)) != -1) { + while ((getline(&line, &len, fstr)) != -1) { if (strncmp(line, begin, begin_len) == 0) { errno = 0; maxheap = (size_t)strtoull(line + begin_len, nullptr, 10);