From 9c0beb57f8cef66c823e20786537f3af80d4a851 Mon Sep 17 00:00:00 2001 From: gtsoul-tech Date: Thu, 30 May 2024 16:40:47 +0300 Subject: [PATCH] deadcode.DeadStores --- tools/hsbench/heapstats.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);