forked from enlightenment/enlightenment
only specify sw, sh, fh variables if we intend on using them
This patch fixes an issue where building with wayland support but disabling wl_drm module would cause compiler warnings about these variables being defined but not used Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
896781204f
commit
38d3654982
|
@ -62,10 +62,10 @@ static xcb_window_t btn2 = 0;
|
|||
static xcb_font_t font = 0;
|
||||
static xcb_gcontext_t gc = 0;
|
||||
static int fa = 0, fw = 0;
|
||||
#endif
|
||||
|
||||
static int sw = 0, sh = 0;
|
||||
static int fh = 0;
|
||||
#endif
|
||||
|
||||
static const char *title = NULL, *str1 = NULL, *str2 = NULL;
|
||||
static int ret = 0, sig = 0;
|
||||
static pid_t pid;
|
||||
|
@ -87,6 +87,8 @@ struct
|
|||
|
||||
#ifdef HAVE_WAYLAND
|
||||
# ifdef HAVE_WL_DRM
|
||||
static int fh = 0;
|
||||
static int sw = 0, sh = 0;
|
||||
static Ecore_Drm_Device *dev = NULL;
|
||||
static Ecore_Drm_Fb *buffer;
|
||||
static Evas *canvas = NULL;
|
||||
|
|
Loading…
Reference in New Issue