From: Jim Warner Date: Sun, 2 Jan 2022 06:00:09 +0000 (-0600) Subject: library: eliminate that warning of '-Wunused-variable' X-Git-Tag: v4.0.0~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d8df62faa90f4d339b41a053887361ca22a62e5;p=procps-ng library: eliminate that warning of '-Wunused-variable' Signed-off-by: Jim Warner --- diff --git a/proc/readproc.c b/proc/readproc.c index feda54b7..eb3504d8 100644 --- a/proc/readproc.c +++ b/proc/readproc.c @@ -1069,7 +1069,7 @@ static char *readlink_exe (const char *path){ // Provide the autogroup fields (or -1 if not available) static void autogroup_fill (const char *path, proc_t *p) { - char buf[PROCPATHLEN], *str; + char buf[PROCPATHLEN]; int fd, in; p->autogrp_id = -1;