From acfcc9572fc7d61fd55042bc1b067dc41c312ad9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 14 Apr 2023 22:38:26 -0500 Subject: [PATCH] Silence another "warning: is never used uninitialized" false positive from gcc. --- toys/other/vmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/other/vmstat.c b/toys/other/vmstat.c index ebe5399e..94502f1f 100644 --- a/toys/other/vmstat.c +++ b/toys/other/vmstat.c @@ -49,7 +49,7 @@ static void get_vmstat_proc(struct vmstat_proc *vmsp) "Buffers:", "Cached:", "SwapFree:", "SwapTotal:", "SReclaimable:", "/proc/vmstat", "pgpgin ", "pgpgout ", "pswpin ", "pswpout " }; unsigned long long *new = (void *)vmsp; - char *p, *name = name, *file = 0; + char *p = 0, *name = name, *file = 0; int i, j; // We use vmstuff to fill out vmstat_proc as an array of long long: -- 2.39.2