ecore: silence warnings the right way

Setting a variable but not using it will trigger another warning on gcc >= 4.6.



SVN revision: 62717
This commit is contained in:
Lucas De Marchi 2011-08-23 12:04:52 +00:00
parent 9cce5f3959
commit 428c512599
2 changed files with 14 additions and 14 deletions

View File

@ -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
}

View File

@ -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