plug-ins: Fix unused variable warning in file-xpm
In file-xpm, use_x_api is only used when GDK_WINDOWING_X11 is defined. However, it was included as a general variable so it threw an unused variable warning when compiled on other systems. This patch moves the variable declaration inside the first #ifdef GDK_WINDOWING_X11 block of the parse_colors () function.
This commit is contained in:
parent
f61c326e65
commit
beb0d85224
1 changed files with 1 additions and 1 deletions
|
|
@ -418,10 +418,10 @@ parse_colors (XpmImage *xpm_image)
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
Display *display;
|
Display *display;
|
||||||
Colormap colormap;
|
Colormap colormap;
|
||||||
|
gboolean use_x_api = FALSE;
|
||||||
#endif
|
#endif
|
||||||
gint i, j;
|
gint i, j;
|
||||||
guchar *cmap;
|
guchar *cmap;
|
||||||
gboolean use_x_api = FALSE;;
|
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
use_x_api = (gdk_display_get_default () &&
|
use_x_api = (gdk_display_get_default () &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue