From 5c3051ed5ef6475c84ada998e9c4344107e800c7 Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Wed, 27 Dec 2023 23:08:57 +0100 Subject: Remove write to never-read variable in InstallWindowColormaps The variable `n` is written to every iteration of the loop, but never read. It is overwritten (and read) in the next loop though. Remove the dead store. Signed-off-by: Tim Wiederhake --- src/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events.c b/src/events.c index d940848..299ad56 100644 --- a/src/events.c +++ b/src/events.c @@ -2510,7 +2510,7 @@ InstallWindowColormaps(int type, TwmWindow *tmp) state = CM_INSTALLED; - for (i = n = 0; i < number_cwins; i++) { + for (i = 0; i < number_cwins; i++) { cwin = cwins[i]; cmap = cwin->colormap; cmap->state |= CM_INSTALLABLE; -- cgit v1.2.3