From 81abb3eb4c8e1a5d1285b99aaec1047dde6c7fde Mon Sep 17 00:00:00 2001 From: lucas Date: Tue, 23 Aug 2011 12:04:52 +0000 Subject: [PATCH] ecore: silence warnings the right way Setting a variable but not using it will trigger another warning on gcc >= 4.6. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@62717 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_evas/ecore_evas_x.c | 26 +++++++++++++------------- src/modules/immodules/xim/ecore_imf_xim.c | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/lib/ecore_evas/ecore_evas_x.c b/src/lib/ecore_evas/ecore_evas_x.c index 1869b76..137ac91 100644 --- a/src/lib/ecore_evas/ecore_evas_x.c +++ b/src/lib/ecore_evas/ecore_evas_x.c @@ -3876,12 +3876,12 @@ ecore_evas_software_x11_8_new(const char *disp_name, Ecore_X_Window parent, return ee; #else return NULL; - disp_name = NULL; - parent = 0; - x = 0; - y = 0; - w = 0; - h = 0; + (void)(disp_name); + (void)(parent); + (void)(x); + (void)(y); + (void)(w); + (void)(h); #endif /* ! BUILD_ECORE_EVAS_SOFTWARE_8_X11 */ } @@ -3897,7 +3897,7 @@ ecore_evas_software_x11_8_window_get(const Ecore_Evas *ee) return (Ecore_X_Window) ecore_evas_window_get(ee); #else return 0; - ee = NULL; + (void)(ee); #endif } @@ -3913,7 +3913,7 @@ ecore_evas_software_x11_8_subwindow_get(const Ecore_Evas *ee) return (Ecore_X_Window) ecore_evas_window_get(ee); #else return 0; - ee = NULL; + (void)(ee); #endif } @@ -3947,8 +3947,8 @@ ecore_evas_software_x11_8_direct_resize_set(Ecore_Evas *ee, Eina_Bool on) } #else return; - ee = NULL; - on = 0; + (void)(ee); + (void)(on); #endif } @@ -3964,7 +3964,7 @@ ecore_evas_software_x11_8_direct_resize_get(const Ecore_Evas *ee) return ee->engine.x.direct_resize; #else return 0; - ee = NULL; + (void)(ee); #endif } @@ -3993,8 +3993,8 @@ ecore_evas_software_x11_8_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window } #else return; - ee = NULL; - win = 0; + (void)(ee); + (void)(win); #endif } diff --git a/src/modules/immodules/xim/ecore_imf_xim.c b/src/modules/immodules/xim/ecore_imf_xim.c index bf611f7..791fdab 100644 --- a/src/modules/immodules/xim/ecore_imf_xim.c +++ b/src/modules/immodules/xim/ecore_imf_xim.c @@ -362,7 +362,7 @@ _ecore_imf_context_xim_cursor_location_set (Ecore_IMF_Context *ctx, XFree(preedit_attr); #endif - w = 0; // yes w is unused, but only a bi-product of the algorithm + (void)(w); // yes w is unused, but only a bi-product of the algorithm } #ifdef ENABLE_XIM -- 2.7.4