From 6dff3365e7629d17cbabc67e069b10e5cb6ce8ba Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 3 Oct 2014 13:28:42 -0400 Subject: [PATCH] clean compiler warnings when building for wayland-only Signed-off-by: Chris Michael --- src/bin/e_bindings.c | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/src/bin/e_bindings.c b/src/bin/e_bindings.c index 0b9ce265b..0300bc43c 100644 --- a/src/bin/e_bindings.c +++ b/src/bin/e_bindings.c @@ -391,6 +391,9 @@ e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win) #endif } } +#ifdef HAVE_WAYLAND_ONLY + (void)win; +#endif } EAPI void @@ -409,6 +412,9 @@ e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win) #endif } } +#ifdef HAVE_WAYLAND_ONLY + (void)win; +#endif } EAPI E_Action * @@ -601,6 +607,9 @@ e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win) } } } +#ifdef HAVE_WAYLAND_ONLY + (void)win; +#endif } EAPI void @@ -622,6 +631,9 @@ e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win) } } } +#ifdef HAVE_WAYLAND_ONLY + (void)win; +#endif } EAPI E_Action * @@ -1189,14 +1201,19 @@ e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win) else if (binding->z > 0) button = 7; } -#ifndef HAVE_WAYLAND_ONLY if (button != 0) - ecore_x_window_button_grab(win, button, - ECORE_X_EVENT_MASK_MOUSE_DOWN, - e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod); + { +#ifndef HAVE_WAYLAND_ONLY + ecore_x_window_button_grab(win, button, + ECORE_X_EVENT_MASK_MOUSE_DOWN, + e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod); #endif + } } } +#ifdef HAVE_WAYLAND_ONLY + (void)win; +#endif } EAPI void @@ -1223,13 +1240,18 @@ e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win) else if (binding->z > 0) button = 7; } -#ifndef HAVE_WAYLAND_ONLY if (button != 0) - ecore_x_window_button_ungrab(win, button, - e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod); + { +#ifndef HAVE_WAYLAND_ONLY + ecore_x_window_button_ungrab(win, button, + e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod); #endif + } } } +#ifdef HAVE_WAYLAND_ONLY + (void)win; +#endif } EAPI E_Action *