From a70a7a4abe99c7d1bc989f37e07efe22c6b42e21 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 21 Jun 2026 16:03:57 -0500 Subject: [PATCH] Shut up gcc's false positive generator. Someday, gcc may undestand: void *map, *p = 0; if (blah) map = thing1, p = thing2; if (p) munmap(map); But gcc 15.1 is not that day. --- toys/other/devmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/other/devmem.c b/toys/other/devmem.c index 355cac56..4ded32e4 100644 --- a/toys/other/devmem.c +++ b/toys/other/devmem.c @@ -45,7 +45,7 @@ void devmem_main(void) int ii, writing = toys.optc > 2, bytes = 4, fd; unsigned long data = 0, map_len QUIET, addr = xatolu(*toys.optargs, sizeof(long)); - void *map, *p = 0; + void *map QUIET, *p = 0; char *pdata; // WIDTH? -- 2.39.5