devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=38d3654982bc3271054c154903e72ffcc7b1c856

commit 38d3654982bc3271054c154903e72ffcc7b1c856
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Thu Feb 4 13:13:37 2016 -0500

    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 <cpmich...@osg.samsung.com>
---
 src/bin/e_alert_main.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_alert_main.c b/src/bin/e_alert_main.c
index 8ca025c..b0e363f 100644
--- a/src/bin/e_alert_main.c
+++ b/src/bin/e_alert_main.c
@@ -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;

-- 


Reply via email to