From beb07d24bc90ef25014d2a4776e0b73528ca5458 Mon Sep 17 00:00:00 2001 From: Rene Kita Date: Tue, 28 Dec 2021 17:10:44 +0100 Subject: [PATCH] Fix a warning about an unused variable *xi is only used if USE_IMLIB is defined, move the declaration inside the #ifdef block. --- w3mimg/x11/x11_w3mimg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/w3mimg/x11/x11_w3mimg.c b/w3mimg/x11/x11_w3mimg.c index 9a539de..4958560 100644 --- a/w3mimg/x11/x11_w3mimg.c +++ b/w3mimg/x11/x11_w3mimg.c @@ -698,8 +698,8 @@ static int x11_get_image_size(w3mimg_op * self, W3MImage * img, char *fname, int *w, int *h) { - struct x11_info *xi; #if defined(USE_IMLIB) + struct x11_info *xi; ImlibImage *im; #elif defined(USE_IMLIB2) Imlib_Image im;