aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-12-24 01:14:12 +0100
committerN-R-K <79544946+N-R-K@users.noreply.github.com>2022-01-06 18:53:02 +0100
commit90bec70e7f186f0e9dbf9e03e555ba50352caff2 (patch)
tree37310cd10fd9b61af4f18a97bcc6186f922b9c87 /image.c
parent1a185237723229720260a04cb61fcffa96dab4d9 (diff)
downloadnsxiv-90bec70e7f186f0e9dbf9e03e555ba50352caff2.tar.zst
fix -Wshadow related warnings
fixes all -Wshadow related warnings (on gcc). this would allow us to use `-Wshadow` in github workflow (https://github.com/nsxiv/nsxiv/pull/195). i've thought about adding `-Wshadow` to our Makefile as well, but decided against it to keep the Makefile CFLAGS barebore/minimal.
Diffstat (limited to 'image.c')
-rw-r--r--image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/image.c b/image.c
index f8c6208..03c1f00 100644
--- a/image.c
+++ b/image.c
@@ -559,7 +559,6 @@ void img_render(img_t *img)
int sx, sy, sw, sh;
int dx, dy, dw, dh;
Imlib_Image bg;
- XColor c;
win = img->win;
img_fit(img);
@@ -627,7 +626,7 @@ void img_render(img_t *img)
}
imlib_image_put_back_data(data);
} else {
- c = win->win_bg;
+ XColor c = win->win_bg;
imlib_context_set_color(c.red >> 8, c.green >> 8, c.blue >> 8, 0xFF);
imlib_image_fill_rectangle(0, 0, dw, dh);
}