diff options
author | Tim Wiederhake <twied@gmx.net> | 2023-12-27 23:08:57 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-01-01 12:21:24 +0100 |
commit | 5c3051ed5ef6475c84ada998e9c4344107e800c7 (patch) | |
tree | 5856c1d95a1ba71b60369883e7bd1fb6488a3016 /src/events.c | |
parent | 87a9086d4bce707d60ee6a024933686dee54fc6a (diff) |
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 <twied@gmx.net>
Diffstat (limited to 'src/events.c')
-rw-r--r-- | src/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |