]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
deadcode.DeadStores
authorgtsoul-tech <gtsoulkanakis@gmail.com>
Thu, 30 May 2024 13:40:47 +0000 (16:40 +0300)
committergtsoul-tech <gtsoulkanakis@gmail.com>
Thu, 30 May 2024 13:40:47 +0000 (16:40 +0300)
tools/hsbench/heapstats.cpp

index 5fba7c2a1c799d4282964f8c4ae111facb312fb1..335b21eb77a121af23c5894266a8a23f93eb859a 100644 (file)
@@ -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);