From 4599117190d38a46af0ff5e1fb949d03c0a48cf8 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sun, 2 Jan 2022 00:00:09 -0600 Subject: [PATCH] library: eliminate warning '-Wunused-but-set-variable' Signed-off-by: Jim Warner --- proc/readproc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proc/readproc.c b/proc/readproc.c index b4127b41..feda54b7 100644 --- a/proc/readproc.c +++ b/proc/readproc.c @@ -641,8 +641,7 @@ static void statm2proc(const char *s, proc_t *restrict P) { } static void io2proc(const char *s, proc_t *restrict P) { - int num; - num = sscanf(s, "rchar: %lu wchar: %lu syscr: %lu syscw: %lu read_bytes: %lu write_bytes: %lu cancelled_write_bytes: %lu", + sscanf(s, "rchar: %lu wchar: %lu syscr: %lu syscw: %lu read_bytes: %lu write_bytes: %lu cancelled_write_bytes: %lu", &P->rchar, &P->wchar, &P->syscr, &P->syscw, &P->read_bytes, &P->write_bytes, &P->cancelled_write_bytes); } -- 2.40.0