Fix a warning about an unused variable

*xi is only used if USE_IMLIB is defined, move the declaration inside
the #ifdef block.
This commit is contained in:
Rene Kita
2021-12-28 17:10:44 +01:00
parent 6d1a8d44e2
commit beb07d24bc

View File

@@ -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;