remove unused parameter in the library.

I won't do this everyday, and i won't touch the tests.


SVN revision: 47093
This commit is contained in:
Vincent Torri 2010-03-09 17:51:30 +00:00
parent f3034c8196
commit b07e49d435
49 changed files with 345 additions and 297 deletions

View File

@ -21,6 +21,7 @@ AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST
AC_C___ATTRIBUTE__
AC_FUNC_ALLOCA
AC_LIBTOOL_WIN32_DLL

View File

@ -0,0 +1,47 @@
dnl Copyright (C) 2004-2008 Kim Woelders
dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
dnl That code is public domain and can be freely used or copied.
dnl Originally snatched from somewhere...
dnl Macro for checking if the compiler supports __attribute__
dnl Usage: AC_C___ATTRIBUTE__
dnl call AC_DEFINE for HAVE___ATTRIBUTE__ and __UNUSED__
dnl if the compiler supports __attribute__, HAVE___ATTRIBUTE__ is
dnl defined to 1 and __UNUSED__ is defined to __attribute__((unused))
dnl otherwise, HAVE___ATTRIBUTE__ is not defined and __UNUSED__ is
dnl defined to nothing.
AC_DEFUN([AC_C___ATTRIBUTE__],
[
AC_MSG_CHECKING([for __attribute__])
AC_CACHE_VAL([ac_cv___attribute__],
[AC_TRY_COMPILE(
[
#include <stdlib.h>
int func(int x);
int foo(int x __attribute__ ((unused)))
{
exit(1);
}
],
[],
[ac_cv___attribute__="yes"],
[ac_cv___attribute__="no"]
)])
AC_MSG_RESULT($ac_cv___attribute__)
if test "x${ac_cv___attribute__}" = "xyes" ; then
AC_DEFINE([HAVE___ATTRIBUTE__], [1], [Define to 1 if your compiler has __attribute__])
AC_DEFINE([__UNUSED__], [__attribute__((unused))], [Macro declaring a function argument to be unused])
else
AC_DEFINE([__UNUSED__], [], [Macro declaring a function argument to be unused])
fi
])
dnl End of ac_attribute.m4

View File

@ -63,13 +63,13 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_sizing_eval(data);
}
static void
_hover_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
_hover_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
@ -77,7 +77,7 @@ _hover_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_hover_clicked(void *data, Evas_Object *obj, void *event_info)
_hover_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_anchorblock_hover_end(data);
}
@ -131,7 +131,7 @@ _anchor_clicked(void *data, Evas_Object *obj, void *event_info)
}
static void
_parent_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
_parent_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
wd->hover_parent = NULL;

View File

@ -55,13 +55,13 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_sizing_eval(data);
}
static void
_hover_clicked(void *data, Evas_Object *obj, void *event_info)
_hover_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_anchorview_hover_end(data);
}
@ -115,7 +115,7 @@ _anchor_clicked(void *data, Evas_Object *obj, void *event_info)
}
static void
_parent_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
_parent_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
wd->hover_parent = NULL;

View File

@ -60,7 +60,7 @@ _sizing_eval(Evas_Object *obj)
/*** GENLIST "MODEL" ***/
static char*
_itc_label_get(const void *data, Evas_Object *obj, const char *source)
_itc_label_get(const void *data, Evas_Object *obj __UNUSED__, const char *source __UNUSED__)
{
//~ printf("LABEL_GET: %s\n", (char*) data);
return strdup(ecore_file_file_get(data)); // NOTE this will be free() by the caller
@ -89,20 +89,20 @@ _itc_icon_get(const void *data, Evas_Object *obj, const char *source)
}
static Eina_Bool
_itc_state_get(const void *data, Evas_Object *obj, const char *source)
_itc_state_get(const void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *source __UNUSED__)
{
return EINA_FALSE;
}
static void
_itc_del(const void *data, Evas_Object *obj)
_itc_del(const void *data, Evas_Object *obj __UNUSED__)
{
//~ printf("DEL DATA [%s]\n", (char*)data);
eina_stringshare_del(data);
}
static void
_expand_done(void *data, Evas_Object *obj, void *event_info)
_expand_done(void *data, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
const char *path = elm_genlist_item_data_get(it);
@ -112,7 +112,7 @@ _expand_done(void *data, Evas_Object *obj, void *event_info)
}
static void
_contract_done(void *data, Evas_Object *obj, void *event_info)
_contract_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
const char *path = elm_genlist_item_data_get(it);
@ -122,14 +122,14 @@ _contract_done(void *data, Evas_Object *obj, void *event_info)
}
static void
_expand_req(void *data, Evas_Object *obj, void *event_info)
_expand_req(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
elm_genlist_item_expanded_set(it, 1);
}
static void
_contract_req(void *data, Evas_Object *obj, void *event_info)
_contract_req(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
elm_genlist_item_expanded_set(it, 0);
@ -137,7 +137,7 @@ _contract_req(void *data, Evas_Object *obj, void *event_info)
/*** PRIVATES ***/
static void
_sel(void *data, Evas_Object *obj, void *event_info)
_sel(void *data, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *fs = data;
Widget_Data *wd = elm_widget_data_get(fs);
@ -172,7 +172,7 @@ _sel(void *data, Evas_Object *obj, void *event_info)
}
static void
_up(void *data, Evas_Object *obj, void *event_info)
_up(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs = data;
Widget_Data *wd = elm_widget_data_get(fs);
@ -183,14 +183,14 @@ _up(void *data, Evas_Object *obj, void *event_info)
}
static void
_home(void *data, Evas_Object *obj, void *event_info)
_home(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs = data;
_populate(fs, getenv("HOME"), NULL);
}
static void
_ok(void *data, Evas_Object *obj, void *event_info)
_ok(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs = data;
evas_object_smart_callback_call(fs, "done",
@ -198,14 +198,14 @@ _ok(void *data, Evas_Object *obj, void *event_info)
}
static void
_canc(void *data, Evas_Object *obj, void *event_info)
_canc(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs = data;
evas_object_smart_callback_call(fs, "done", NULL);
}
static void
_anchor_clicked(void *data, Evas_Object *obj, void *event_info)
_anchor_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *fs = data;
Widget_Data *wd = elm_widget_data_get(fs);

View File

@ -114,19 +114,19 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_sizing_eval(data);
}
static void
_hover_clicked(void *data, Evas_Object *obj, void *event_info)
_hover_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_hoversel_hover_end(data);
}
static void
_item_clicked(void *data, Evas_Object *obj, void *event_info)
_item_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Elm_Hoversel_Item *it = data;
Evas_Object *obj2 = it->obj;
@ -211,13 +211,13 @@ _activate(Evas_Object *obj)
}
static void
_button_clicked(void *data, Evas_Object *obj, void *event_info)
_button_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_activate(data);
}
static void
_parent_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
_parent_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);

View File

@ -58,7 +58,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_on_focus_hook(void *data, Evas_Object *obj)
_on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (elm_widget_focus_get(obj))
@ -208,7 +208,7 @@ _delay_write(void *data)
}
static void
_entry_changed(void *data, Evas_Object *obj, void *event_info)
_entry_changed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (wd->delay_write)
@ -221,7 +221,7 @@ _entry_changed(void *data, Evas_Object *obj, void *event_info)
}
static void
_hold_on(void *data, Evas_Object *obj, void *event_info)
_hold_on(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
@ -229,7 +229,7 @@ _hold_on(void *data, Evas_Object *obj, void *event_info)
}
static void
_hold_off(void *data, Evas_Object *obj, void *event_info)
_hold_off(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
@ -237,7 +237,7 @@ _hold_off(void *data, Evas_Object *obj, void *event_info)
}
static void
_freeze_on(void *data, Evas_Object *obj, void *event_info)
_freeze_on(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
@ -245,7 +245,7 @@ _freeze_on(void *data, Evas_Object *obj, void *event_info)
}
static void
_freeze_off(void *data, Evas_Object *obj, void *event_info)
_freeze_off(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;

View File

@ -31,7 +31,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_on_focus_hook(void *data, Evas_Object *obj)
_on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (elm_widget_focus_get(obj))
@ -47,86 +47,86 @@ _disable_hook(Evas_Object *obj)
}
static void
_entry_changed(void *data, Evas_Object *obj, void *event_info)
_entry_changed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_sizing_eval(data);
evas_object_smart_callback_call(data, "changed", NULL);
}
static void
_entry_activated(void *data, Evas_Object *obj, void *event_info)
_entry_activated(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "activated", NULL);
}
static void
_entry_press(void *data, Evas_Object *obj, void *event_info)
_entry_press(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "press", NULL);
}
static void
_entry_clicked(void *data, Evas_Object *obj, void *event_info)
_entry_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "clicked", NULL);
}
static void
_entry_clicked_double(void *data, Evas_Object *obj, void *event_info)
_entry_clicked_double(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "clicked,double", NULL);
}
static void
_entry_cursor_changed(void *data, Evas_Object *obj, void *event_info)
_entry_cursor_changed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "cursor,changed", NULL);
}
static void
_entry_anchor_clicked(void *data, Evas_Object *obj, void *event_info)
_entry_anchor_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "anchor,clicked", NULL);
}
static void
_entry_selection_start(void *data, Evas_Object *obj, void *event_info)
_entry_selection_start(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "selection,start", NULL);
}
static void
_entry_selection_changed(void *data, Evas_Object *obj, void *event_info)
_entry_selection_changed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "selection,changed", NULL);
}
static void
_entry_selection_cleared(void *data, Evas_Object *obj, void *event_info)
_entry_selection_cleared(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "selection,cleared", NULL);
}
static void
_entry_selection_paste(void *data, Evas_Object *obj, void *event_info)
_entry_selection_paste(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "selection,paste", NULL);
}
static void
_entry_selection_copy(void *data, Evas_Object *obj, void *event_info)
_entry_selection_copy(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "selection,copy", NULL);
}
static void
_entry_selection_cut(void *data, Evas_Object *obj, void *event_info)
_entry_selection_cut(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "selection,cut", NULL);
}
static void
_entry_longpressed(void *data, Evas_Object *obj, void *event_info)
_entry_longpressed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "longpressed", NULL);
}

View File

@ -38,7 +38,7 @@ _theme_hook(Evas_Object *obj)
}
static void
_custom_resize(void *data, Evas *a, Evas_Object *obj, void *event_info)
_custom_resize(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
int iw = 0, ih = 0;
Evas_Coord x, y, w, h, ow = 0, oh = 0;

View File

@ -68,13 +68,13 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_sizing_eval(data);
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
_sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
_sizing_eval(obj);
}

View File

@ -58,7 +58,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -66,7 +66,7 @@ _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
_sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;

View File

@ -48,7 +48,7 @@ _del_hook(Evas_Object *obj)
}
static void
_on_focus_hook(void *data, Evas_Object *obj)
_on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
@ -106,7 +106,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -115,7 +115,7 @@ _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
_sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
@ -165,7 +165,7 @@ _autorepeat_initial_send(void *data)
}
static void
_signal_pressed(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_pressed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -180,7 +180,7 @@ _signal_pressed(void *data, Evas_Object *obj, const char *emission, const char *
}
static void
_signal_unpressed(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_unpressed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;

View File

@ -120,7 +120,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
_resize(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
Evas_Coord mw, mh, vw, vh, w, h;
@ -146,7 +146,7 @@ _resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_select(void *data, Evas_Object *obj, const char *emission, const char *source)
_select(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
_item_select(data);
}

View File

@ -98,7 +98,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -109,7 +109,7 @@ _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
_sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
@ -125,7 +125,7 @@ _sub_del(void *data, Evas_Object *obj, void *event_info)
}
static void
_signal_check_off(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_check_off(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -136,7 +136,7 @@ _signal_check_off(void *data, Evas_Object *obj, const char *emission, const char
}
static void
_signal_check_on(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_check_on(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -147,7 +147,7 @@ _signal_check_on(void *data, Evas_Object *obj, const char *emission, const char
}
static void
_signal_check_toggle(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_check_toggle(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;

View File

@ -92,7 +92,7 @@ _ticker(void *data)
}
static void
_signal_clock_val_up(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_clock_val_up(void *data, Evas_Object *obj, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -137,7 +137,7 @@ _signal_clock_val_up(void *data, Evas_Object *obj, const char *emission, const c
}
static void
_signal_clock_val_down(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_clock_val_down(void *data, Evas_Object *obj, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;

View File

@ -65,7 +65,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -73,7 +73,7 @@ _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
_sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
@ -140,7 +140,7 @@ _autoscroll_mode_disable(Evas_Object *obj)
*/
static int
_prop_change(void *data, int type, void *event)
_prop_change(void *data, int type __UNUSED__, void *event)
{
#ifdef HAVE_ELEMENTARY_X
Ecore_X_Event_Window_Property *ev;

View File

@ -73,7 +73,7 @@ struct _Mod_Api
};
static Mod_Api *
_module(Evas_Object *obj)
_module(Evas_Object *obj __UNUSED__)
{
static Elm_Module *m = NULL;
if (m) goto ok; // already found - just use
@ -200,7 +200,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_on_focus_hook(void *data, Evas_Object *obj)
_on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *top = elm_widget_top_get(obj);
@ -245,7 +245,7 @@ _hoversel_position(Evas_Object *obj)
}
static void
_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
_move(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
@ -253,7 +253,7 @@ _move(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
_resize(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -267,7 +267,7 @@ _resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_dismissed(void *data, Evas_Object *obj, void *event_info)
_dismissed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -278,7 +278,7 @@ _dismissed(void *data, Evas_Object *obj, void *event_info)
}
static void
_select(void *data, Evas_Object *obj, void *event_info)
_select(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -290,7 +290,7 @@ _select(void *data, Evas_Object *obj, void *event_info)
}
static void
_paste(void *data, Evas_Object *obj, void *event_info)
_paste(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -323,7 +323,7 @@ _store_selection(Evas_Object *obj)
}
static void
_cut(void *data, Evas_Object *obj, void *event_info)
_cut(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
@ -337,7 +337,7 @@ _cut(void *data, Evas_Object *obj, void *event_info)
}
static void
_copy(void *data, Evas_Object *obj, void *event_info)
_copy(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -350,7 +350,7 @@ _copy(void *data, Evas_Object *obj, void *event_info)
}
static void
_cancel(void *data, Evas_Object *obj, void *event_info)
_cancel(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -362,7 +362,7 @@ _cancel(void *data, Evas_Object *obj, void *event_info)
}
static void
_item_clicked(void *data, Evas_Object *obj, void *event_info)
_item_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Elm_Entry_Context_Menu_Item *it = data;
Evas_Object *obj2 = it->obj;
@ -443,7 +443,7 @@ _long_press(void *data)
}
static void
_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
_mouse_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Down *ev = event_info;
@ -458,7 +458,7 @@ _mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
}
static void
_mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
_mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Up *ev = event_info;
@ -472,7 +472,7 @@ _mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
}
static void
_mouse_move(void *data, Evas *evas, Evas_Object *obj, void *event_info)
_mouse_move(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Move *ev = event_info;
@ -740,7 +740,7 @@ _text_to_mkup(const char *text)
}
static void
_signal_entry_changed(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_entry_changed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -752,7 +752,7 @@ _signal_entry_changed(void *data, Evas_Object *obj, const char *emission, const
}
static void
_signal_selection_start(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_selection_start(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
const Eina_List *l;
@ -784,7 +784,7 @@ _signal_selection_start(void *data, Evas_Object *obj, const char *emission, cons
}
static void
_signal_selection_changed(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_selection_changed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -810,7 +810,7 @@ _signal_selection_changed(void *data, Evas_Object *obj, const char *emission, co
}
static void
_signal_selection_cleared(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_selection_cleared(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -855,7 +855,7 @@ _signal_selection_cleared(void *data, Evas_Object *obj, const char *emission, co
}
static void
_signal_entry_paste_request(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_entry_paste_request(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -877,7 +877,7 @@ _signal_entry_paste_request(void *data, Evas_Object *obj, const char *emission,
}
static void
_signal_entry_copy_notify(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_entry_copy_notify(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -885,7 +885,7 @@ _signal_entry_copy_notify(void *data, Evas_Object *obj, const char *emission, co
}
static void
_signal_entry_cut_notify(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_entry_cut_notify(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
char *txt;
@ -905,7 +905,7 @@ _signal_entry_cut_notify(void *data, Evas_Object *obj, const char *emission, con
}
static void
_signal_cursor_changed(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_cursor_changed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
Evas_Coord cx, cy, cw, ch;
@ -926,14 +926,14 @@ _signal_cursor_changed(void *data, Evas_Object *obj, const char *emission, const
}
static void
_signal_anchor_down(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_anchor_down(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
}
static void
_signal_anchor_up(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_anchor_up(void *data, Evas_Object *obj __UNUSED__, const char *emission, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
Elm_Entry_Anchor_Info ei;
@ -987,28 +987,28 @@ _signal_anchor_up(void *data, Evas_Object *obj, const char *emission, const char
}
static void
_signal_anchor_move(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_anchor_move(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
}
static void
_signal_anchor_in(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_anchor_in(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
}
static void
_signal_anchor_out(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_anchor_out(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
}
static void
_signal_key_enter(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_key_enter(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -1016,7 +1016,7 @@ _signal_key_enter(void *data, Evas_Object *obj, const char *emission, const char
}
static void
_signal_mouse_down(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_mouse_down(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -1024,7 +1024,7 @@ _signal_mouse_down(void *data, Evas_Object *obj, const char *emission, const cha
}
static void
_signal_mouse_up(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_mouse_up(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -1032,7 +1032,7 @@ _signal_mouse_up(void *data, Evas_Object *obj, const char *emission, const char
}
static void
_signal_mouse_double(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_mouse_double(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -1041,7 +1041,7 @@ _signal_mouse_double(void *data, Evas_Object *obj, const char *emission, const c
#ifdef HAVE_ELEMENTARY_X
static int
_event_selection_notify(void *data, int type, void *event)
_event_selection_notify(void *data, int type __UNUSED__, void *event)
{
Widget_Data *wd = elm_widget_data_get(data);
Ecore_X_Event_Selection_Notify *ev = event;
@ -1072,7 +1072,7 @@ _event_selection_notify(void *data, int type, void *event)
}
static int
_event_selection_clear(void *data, int type, void *event)
_event_selection_clear(void *data, int type __UNUSED__, void *event)
{
Widget_Data *wd = elm_widget_data_get(data);
Ecore_X_Event_Selection_Clear *ev = event;

View File

@ -73,7 +73,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -81,7 +81,7 @@ _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
_sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
@ -246,13 +246,13 @@ _configure(Evas_Object *obj)
}
static void
_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
_move(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
_configure(obj);
}
static void
_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
_resize(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
_configure(obj);
}
@ -408,7 +408,7 @@ elm_flip_front_get(Evas_Object *obj)
}
EAPI void
elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y)
elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc __UNUSED__, Evas_Coord x __UNUSED__, Evas_Coord y __UNUSED__)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);

View File

@ -55,7 +55,7 @@ _sizing_eval(Evas_Object *obj)
}
static void
_changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
// FIXME: why is this needed? how does edje get this unswallowed or
@ -66,7 +66,7 @@ _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
_sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;

View File

@ -556,7 +556,7 @@ _item_unselect(Elm_Genlist_Item *it)
}
static void
_mouse_move(void *data, Evas *evas, Evas_Object *obj, void *event_info)
_mouse_move(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *event_info)
{
Elm_Genlist_Item *it = data;
Evas_Event_Mouse_Move *ev = event_info;
@ -658,7 +658,7 @@ _long_press(void *data)
}
static void
_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
_mouse_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *event_info)
{
Elm_Genlist_Item *it = data;
Evas_Event_Mouse_Down *ev = event_info;
@ -682,7 +682,7 @@ _mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
}
static void
_mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
_mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = data;
Evas_Event_Mouse_Up *ev = event_info;
@ -753,7 +753,7 @@ _mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
}
static void
_signal_expand_toggle(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_expand_toggle(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Elm_Genlist_Item *it = data;
@ -764,7 +764,7 @@ _signal_expand_toggle(void *data, Evas_Object *obj, const char *emission, const
}
static void
_signal_expand(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_expand(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Elm_Genlist_Item *it = data;
@ -773,7 +773,7 @@ _signal_expand(void *data, Evas_Object *obj, const char *emission, const char *s
}
static void
_signal_contract(void *data, Evas_Object *obj, const char *emission, const char *source)
_signal_contract(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
Elm_Genlist_Item *it = data;
@ -1376,7 +1376,7 @@ _pan_calculate(Evas_Object *obj)
}
static void
_pan_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
_pan_move(Evas_Object *obj, Evas_Coord x __UNUSED__, Evas_Coord y __UNUSED__)
{
Pan *sd = evas_object_smart_data_get(obj);
@ -1385,7 +1385,7 @@ _pan_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
}
static void
_hold_on(void *data, Evas_Object *obj, void *event_info)
_hold_on(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
@ -1393,7 +1393,7 @@ _hold_on(void *data, Evas_Object *obj, void *event_info)
}
static void
_hold_off(void *data, Evas_Object *obj, void *event_info)
_hold_off(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
@ -1401,7 +1401,7 @@ _hold_off(void *data, Evas_Object *obj, void *event_info)
}
static void
_freeze_on(void *data, Evas_Object *obj, void *event_info)
_freeze_on(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
@ -1409,7 +1409,7 @@ _freeze_on(void *data, Evas_Object *obj, void *event_info)
}
static void
_freeze_off(void *data, Evas_Object *obj, void *event_info)
_freeze_off(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;

View File

@ -104,7 +104,7 @@ _reval_content(Evas_Object *obj)
}
static void
_sub_del(void *data, Evas_Object *obj, void *event_info)
_sub_del(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *sub = event_info;
@ -149,25 +149,25 @@ _hov_show_do(Evas_Object *obj)
}
static void
_hov_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
_hov_move(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_sizing_eval(data);
}
static void
_hov_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
_hov_resize(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_sizing_eval(data);
}
static void
_hov_show(void *data, Evas *e, Evas_Object *obj, void *event_info)
_hov_show(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_hov_show_do(data);
}
static void
_hov_hide(void *data, Evas *e, Evas_Object *obj, void *event_info)
_hov_hide(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
@ -193,7 +193,7 @@ _hov_hide(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_target_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
_target_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
@ -201,7 +201,7 @@ _target_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
_signal_dismiss(void *data, Evas_Object *obj, const char *emission, const char *source)