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:
@@ -698,8 +698,8 @@ static int
|
|||||||
x11_get_image_size(w3mimg_op * self, W3MImage * img, char *fname, int *w,
|
x11_get_image_size(w3mimg_op * self, W3MImage * img, char *fname, int *w,
|
||||||
int *h)
|
int *h)
|
||||||
{
|
{
|
||||||
struct x11_info *xi;
|
|
||||||
#if defined(USE_IMLIB)
|
#if defined(USE_IMLIB)
|
||||||
|
struct x11_info *xi;
|
||||||
ImlibImage *im;
|
ImlibImage *im;
|
||||||
#elif defined(USE_IMLIB2)
|
#elif defined(USE_IMLIB2)
|
||||||
Imlib_Image im;
|
Imlib_Image im;
|
||||||
|
Reference in New Issue
Block a user