aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2010-10-19 18:25:22 +0000
committerBruno Dilly <bdilly@profusion.mobi>2010-10-19 18:25:22 +0000
commit4ea66676b344af28dd26a79c33d11541ddbaeb19 (patch)
treeefb5753a7e79ac270be4197180d3a5cc1bcd1014 /legacy/elementary
parentFix some wextra complains on elm lib (diff)
downloadefl-4ea66676b344af28dd26a79c33d11541ddbaeb19.tar.gz
Fix some Wextra complains on elm bin
SVN revision: 53636
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/bin/config.c33
-rw-r--r--legacy/elementary/src/bin/quicklaunch.c9
-rw-r--r--legacy/elementary/src/bin/run.c2
-rw-r--r--legacy/elementary/src/bin/test.c7
-rw-r--r--legacy/elementary/src/bin/test_anchorblock.c17
-rw-r--r--legacy/elementary/src/bin/test_anchorview.c7
-rw-r--r--legacy/elementary/src/bin/test_anim.c11
-rw-r--r--legacy/elementary/src/bin/test_bg.c16
-rw-r--r--legacy/elementary/src/bin/test_box.c11
-rw-r--r--legacy/elementary/src/bin/test_button.c7
-rw-r--r--legacy/elementary/src/bin/test_calendar.c9
-rw-r--r--legacy/elementary/src/bin/test_carousel.c5
-rw-r--r--legacy/elementary/src/bin/test_check.c5
-rw-r--r--legacy/elementary/src/bin/test_clock.c11
-rw-r--r--legacy/elementary/src/bin/test_colorpicker.c7
-rw-r--r--legacy/elementary/src/bin/test_conform.c5
-rw-r--r--legacy/elementary/src/bin/test_cursor.c21
-rw-r--r--legacy/elementary/src/bin/test_diskpicker.c11
-rw-r--r--legacy/elementary/src/bin/test_entry.c77
-rw-r--r--legacy/elementary/src/bin/test_fileselector.c13
-rw-r--r--legacy/elementary/src/bin/test_fileselector_button.c15
-rw-r--r--legacy/elementary/src/bin/test_fileselector_entry.c15
-rw-r--r--legacy/elementary/src/bin/test_flip.c25
-rw-r--r--legacy/elementary/src/bin/test_floating.c15
-rw-r--r--legacy/elementary/src/bin/test_focus.c7
-rw-r--r--legacy/elementary/src/bin/test_focus2.c13
-rw-r--r--legacy/elementary/src/bin/test_gengrid.c41
-rw-r--r--legacy/elementary/src/bin/test_genlist.c119
-rw-r--r--legacy/elementary/src/bin/test_hover.c7
-rw-r--r--legacy/elementary/src/bin/test_hoversel.c5
-rw-r--r--legacy/elementary/src/bin/test_icon.c7
-rw-r--r--legacy/elementary/src/bin/test_icon_desktops.c18
-rw-r--r--legacy/elementary/src/bin/test_index.c23
-rw-r--r--legacy/elementary/src/bin/test_inwin.c7
-rw-r--r--legacy/elementary/src/bin/test_label.c5
-rw-r--r--legacy/elementary/src/bin/test_launcher.c45
-rw-r--r--legacy/elementary/src/bin/test_layout.c5
-rw-r--r--legacy/elementary/src/bin/test_list.c31
-rw-r--r--legacy/elementary/src/bin/test_magnetslider.c9
-rw-r--r--legacy/elementary/src/bin/test_map.c71
-rw-r--r--legacy/elementary/src/bin/test_menu.c7
-rw-r--r--legacy/elementary/src/bin/test_multi.c17
-rw-r--r--legacy/elementary/src/bin/test_notepad.c11
-rw-r--r--legacy/elementary/src/bin/test_notify.c15
-rw-r--r--legacy/elementary/src/bin/test_pager.c17
-rw-r--r--legacy/elementary/src/bin/test_panel.c15
-rw-r--r--legacy/elementary/src/bin/test_panes.c13
-rw-r--r--legacy/elementary/src/bin/test_photo.c11
-rw-r--r--legacy/elementary/src/bin/test_photocam.c59
-rw-r--r--legacy/elementary/src/bin/test_progressbar.c13
-rw-r--r--legacy/elementary/src/bin/test_radio.c5
-rw-r--r--legacy/elementary/src/bin/test_scaling.c7
-rw-r--r--legacy/elementary/src/bin/test_scroller.c17
-rw-r--r--legacy/elementary/src/bin/test_separator.c5
-rw-r--r--legacy/elementary/src/bin/test_slider.c8
-rw-r--r--legacy/elementary/src/bin/test_slideshow.c23
-rw-r--r--legacy/elementary/src/bin/test_spinner.c5
-rw-r--r--legacy/elementary/src/bin/test_table.c5
-rw-r--r--legacy/elementary/src/bin/test_thumb.c5
-rw-r--r--legacy/elementary/src/bin/test_toggle.c5
-rw-r--r--legacy/elementary/src/bin/test_toolbar.c15
-rw-r--r--legacy/elementary/src/bin/test_tooltip.c14
-rw-r--r--legacy/elementary/src/bin/test_weather.c6
-rw-r--r--legacy/elementary/src/bin/test_win_state.c31
-rw-r--r--legacy/elementary/src/modules/test_entry/mod.c7
65 files changed, 647 insertions, 456 deletions
diff --git a/legacy/elementary/src/bin/config.c b/legacy/elementary/src/bin/config.c
index 7103ae1e4e..7e5e8641f0 100644
--- a/legacy/elementary/src/bin/config.c
+++ b/legacy/elementary/src/bin/config.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct _Theme Theme;
@@ -22,14 +25,14 @@ static const char *finger_size_set = NULL;
static const char *scale_set = NULL;
static void
-my_win_del(void *data, Evas_Object *obj, void *event_info)
+my_win_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
/* called when my_win_main is requested to be deleted */
elm_exit(); /* exit the program's main loop that runs in elm_run() */
}
static void
-sc_round(void *data, Evas_Object *obj, void *event_info)
+sc_round(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
double val = elm_slider_value_get(obj);
double v;
@@ -39,7 +42,7 @@ sc_round(void *data, Evas_Object *obj, void *event_info)
}
static void
-sc_change(void *data, Evas_Object *obj, void *event_info)
+sc_change(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
double scale = elm_scale_get();
double val = elm_slider_value_get(obj);
@@ -49,7 +52,7 @@ sc_change(void *data, Evas_Object *obj, void *event_info)
}
static void
-fs_round(void *data, Evas_Object *obj, void *event_info)
+fs_round(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
double val = elm_slider_value_get(obj);
double v;
@@ -59,7 +62,7 @@ fs_round(void *data, Evas_Object *obj, void *event_info)
}
static void
-fs_change(void *data, Evas_Object *obj, void *event_info)
+fs_change(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
double scale = elm_scale_get();
double val = elm_slider_value_get(obj);
@@ -205,49 +208,49 @@ _flip_to(Evas_Object *win, const char *name)
}
static void
-_cf_sizing(void *data, Evas_Object *obj, void *event_info)
+_cf_sizing(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_flip_to(data, "sizing");
}
static void
-_cf_themes(void *data, Evas_Object *obj, void *event_info)
+_cf_themes(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_flip_to(data, "themes");
}
static void
-_cf_fonts(void *data, Evas_Object *obj, void *event_info)
+_cf_fonts(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_flip_to(data, "fonts");
}
static void
-_cf_profiles(void *data, Evas_Object *obj, void *event_info)
+_cf_profiles(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_flip_to(data, "profiles");
}
static void
-_cf_scrolling(void *data, Evas_Object *obj, void *event_info)
+_cf_scrolling(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_flip_to(data, "scrolling");
}
static void
-_cf_rendering(void *data, Evas_Object *obj, void *event_info)
+_cf_rendering(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_flip_to(data, "rendering");
}
static void
-_cf_caches(void *data, Evas_Object *obj, void *event_info)
+_cf_caches(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
_flip_to(data, "caches");
}
static void
-_theme_use(void *data, Evas_Object *obj, void *event_info)
+_theme_use(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
const char *defth;
char *newth;
@@ -275,7 +278,7 @@ _theme_use(void *data, Evas_Object *obj, void *event_info)
}
static void
-_theme_sel(void *data, Evas_Object *obj, void *event_info)
+_theme_sel(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Theme *t = data;
Evas_Object *win = elm_object_top_widget_get(obj);
@@ -754,7 +757,7 @@ status_win(void)
}
static Eina_Bool
-_exit_timer(void *data)
+_exit_timer(void *data __UNUSED__)
{
elm_exit();
return ECORE_CALLBACK_CANCEL;
diff --git a/legacy/elementary/src/bin/quicklaunch.c b/legacy/elementary/src/bin/quicklaunch.c
index 1446cf4a53..31c7631fcd 100644
--- a/legacy/elementary/src/bin/quicklaunch.c
+++ b/legacy/elementary/src/bin/quicklaunch.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
@@ -38,7 +41,7 @@ static int _log_dom = -1;
#define DBG(...) EINA_LOG_DOM_DBG(_log_dom, __VA_ARGS__)
static void
-post_fork(void *data)
+post_fork(void *data __UNUSED__)
{
sigaction(SIGINT, &old_sigint, NULL);
sigaction(SIGTERM, &old_sigterm, NULL);
@@ -61,14 +64,14 @@ post_fork(void *data)
}
static void
-child_handler(int x, siginfo_t *info, void *data)
+child_handler(int x __UNUSED__, siginfo_t *info __UNUSED__, void *data __UNUSED__)
{
int status;
while (waitpid(-1, &status, WNOHANG) > 0);
}
static void
-crash_handler(int x, siginfo_t *info, void *data)
+crash_handler(int x __UNUSED__, siginfo_t *info __UNUSED__, void *data __UNUSED__)
{
double t;
diff --git a/legacy/elementary/src/bin/run.c b/legacy/elementary/src/bin/run.c
index e43d1453fb..a3168844ee 100644
--- a/legacy/elementary/src/bin/run.c
+++ b/legacy/elementary/src/bin/run.c
@@ -76,7 +76,7 @@ main(int argc, char **argv)
{
if ((*p == ':') || (*p == 0))
{
- int len;
+ unsigned int len;
len = p - pp;
if (len < (sizeof(buf) - exelen - 3))
diff --git a/legacy/elementary/src/bin/test.c b/legacy/elementary/src/bin/test.c
index 551347bd42..e749fbf039 100644
--- a/legacy/elementary/src/bin/test.c
+++ b/legacy/elementary/src/bin/test.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
/* all tests prototypes */
@@ -121,14 +124,14 @@ elm_test_add(Eina_List **p_list, const char *name, void (*cb)(void *, Evas_Objec
}
static void
-my_win_del(void *data, Evas_Object *obj, void *event_info)
+my_win_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
/* called when my_win_main is requested to be deleted */
elm_exit(); /* exit the program's main loop that runs in elm_run() */
}
static void
-index_changed(void *data, Evas_Object *obj, void *event_info)
+index_changed(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
elm_list_item_show(event_info);
}
diff --git a/legacy/elementary/src/bin/test_anchorblock.c b/legacy/elementary/src/bin/test_anchorblock.c
index b04a1a6f90..c28516170a 100644
--- a/legacy/elementary/src/bin/test_anchorblock.c
+++ b/legacy/elementary/src/bin/test_anchorblock.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-my_anchorblock_bt(void *data, Evas_Object *obj, void *event_info)
+my_anchorblock_bt(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *av = data;
elm_anchorblock_hover_end(av);
@@ -68,31 +71,31 @@ my_anchorblock_anchor(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_anchorblock_edge_left(void *data, Evas_Object *obj, void *event_info)
+my_anchorblock_edge_left(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("left\n");
}
static void
-my_anchorblock_edge_right(void *data, Evas_Object *obj, void *event_info)
+my_anchorblock_edge_right(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("right\n");
}
static void
-my_anchorblock_edge_top(void *data, Evas_Object *obj, void *event_info)
+my_anchorblock_edge_top(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("top\n");
}
static void
-my_anchorblock_edge_bottom(void *data, Evas_Object *obj, void *event_info)
+my_anchorblock_edge_bottom(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("bottom\n");
}
static void
-my_anchorblock_scroll(void *data, Evas_Object *obj, void *event_info)
+my_anchorblock_scroll(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Coord x, y, w, h, vw, vh;
@@ -102,7 +105,7 @@ my_anchorblock_scroll(void *data, Evas_Object *obj, void *event_info)
}
void
-test_anchorblock(void *data, Evas_Object *obj, void *event_info)
+test_anchorblock(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *av, *sc, *bx, *bb, *ic;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_anchorview.c b/legacy/elementary/src/bin/test_anchorview.c
index 690a448254..9d79664d54 100644
--- a/legacy/elementary/src/bin/test_anchorview.c
+++ b/legacy/elementary/src/bin/test_anchorview.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-my_anchorview_bt(void *data, Evas_Object *obj, void *event_info)
+my_anchorview_bt(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *av = data;
elm_anchorview_hover_end(av);
@@ -68,7 +71,7 @@ my_anchorview_anchor(void *data, Evas_Object *obj, void *event_info)
}
void
-test_anchorview(void *data, Evas_Object *obj, void *event_info)
+test_anchorview(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *av;
diff --git a/legacy/elementary/src/bin/test_anim.c b/legacy/elementary/src/bin/test_anim.c
index f7a0661e6f..2601ef4708 100644
--- a/legacy/elementary/src/bin/test_anim.c
+++ b/legacy/elementary/src/bin/test_anim.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static const char *names[] =
@@ -9,7 +12,7 @@ static const char *names[] =
};
static void
-_del(void *data, Evas *evas, Evas_Object *obj, void *event_info)
+_del(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Ecore_Animator *ani = evas_object_data_get(win, "animator");
@@ -25,7 +28,7 @@ anim(void *data)
Evas_Coord x, y, w, h, vw, vh;
double t, xx, yy, zz, r, fac;
double lx, ly;
- int i;
+ unsigned int i;
evas_output_viewport_get(evas_object_evas_get(win), 0, 0, &vw, &vh);
r = 48;
@@ -61,12 +64,12 @@ anim(void *data)
}
void
-test_anim(void *data, Evas_Object *obj, void *event_info)
+test_anim(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bub, *sh;
Ecore_Animator *ani;
char buf[PATH_MAX];
- int i;
+ unsigned int i;
win = elm_win_add(NULL, "animation", ELM_WIN_BASIC);
elm_win_title_set(win, "Animation");
diff --git a/legacy/elementary/src/bin/test_bg.c b/legacy/elementary/src/bin/test_bg.c
index 232524f82f..a30b870f10 100644
--- a/legacy/elementary/src/bin/test_bg.c
+++ b/legacy/elementary/src/bin/test_bg.c
@@ -1,7 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
+
static void
-_cb_radio_changed(void *data, Evas_Object *obj, void *event)
+_cb_radio_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
{
Evas_Object *o_bg = data;
@@ -9,7 +13,7 @@ _cb_radio_changed(void *data, Evas_Object *obj, void *event)
}
static void
-_cb_overlay_changed(void *data, Evas_Object *obj, void *event)
+_cb_overlay_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
{
Evas_Object *o_bg = data;
@@ -29,7 +33,7 @@ _cb_overlay_changed(void *data, Evas_Object *obj, void *event)
}
static void
-_cb_color_changed(void *data, Evas_Object *obj, void *event)
+_cb_color_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
{
Evas_Object *o_bg = data;
double val = 0.0;
@@ -46,7 +50,7 @@ _cb_color_changed(void *data, Evas_Object *obj, void *event)
}
void
-test_bg_plain(void *data, Evas_Object *obj, void *event_info)
+test_bg_plain(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg;
@@ -76,7 +80,7 @@ test_bg_plain(void *data, Evas_Object *obj, void *event_info)
}
void
-test_bg_image(void *data, Evas_Object *obj, void *event_info)
+test_bg_image(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg;
char buf[PATH_MAX];
@@ -99,7 +103,7 @@ test_bg_image(void *data, Evas_Object *obj, void *event_info)
}
void
-test_bg_options(void *data, Evas_Object *obj, void *event_info)
+test_bg_options(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg;
Evas_Object *box, *hbox, *o_bg;
diff --git a/legacy/elementary/src/bin/test_box.c b/legacy/elementary/src/bin/test_box.c
index dc8c8a8530..6447501f55 100644
--- a/legacy/elementary/src/bin/test_box.c
+++ b/legacy/elementary/src/bin/test_box.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_box_vert(void *data, Evas_Object *obj, void *event_info)
+test_box_vert(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ic;
char buf[PATH_MAX];
@@ -48,7 +51,7 @@ test_box_vert(void *data, Evas_Object *obj, void *event_info)
}
static void
-_del_cb(void *data, Evas_Object *obj, void *event_info)
+_del_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
elm_box_unpack(data, obj);
evas_object_move(obj, 0, 0);
@@ -57,7 +60,7 @@ _del_cb(void *data, Evas_Object *obj, void *event_info)
}
void
-test_box_vert2(void *data, Evas_Object *obj, void *event_info)
+test_box_vert2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bt;
@@ -119,7 +122,7 @@ test_box_vert2(void *data, Evas_Object *obj, void *event_info)
}
void
-test_box_horiz(void *data, Evas_Object *obj, void *event_info)
+test_box_horiz(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ic;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_button.c b/legacy/elementary/src/bin/test_button.c
index ea07666829..c90ab1c23c 100644
--- a/legacy/elementary/src/bin/test_button.c
+++ b/legacy/elementary/src/bin/test_button.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-_bt_repeated(void *data, Evas_Object *obj, void *event_info)
+_bt_repeated(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
static int count;
char buf[16];
@@ -13,7 +16,7 @@ _bt_repeated(void *data, Evas_Object *obj, void *event_info)
}
void
-test_button(void *data, Evas_Object *obj, void *event_info)
+test_button(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ic, *bt;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_calendar.c b/legacy/elementary/src/bin/test_calendar.c
index 4083f6ecac..9259692932 100644
--- a/legacy/elementary/src/bin/test_calendar.c
+++ b/legacy/elementary/src/bin/test_calendar.c
@@ -1,9 +1,12 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
/* A simple test, just displaying calendar in it's default state */
void
-test_calendar(void *data, Evas_Object *obj, void *event_info)
+test_calendar(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *cal;
@@ -54,7 +57,7 @@ _print_cal_info(Evas_Object *cal, Evas_Object *en)
}
static void
-_print_cal_info_cb(void *data, Evas_Object *obj, void *event_info)
+_print_cal_info_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
_print_cal_info(obj, data);
}
@@ -70,7 +73,7 @@ _format_month_year(struct tm *stime)
/* A test intended to cover all the calendar api and much use cases as
possible */
void
-test_calendar2(void *data, Evas_Object *obj, void *event_info)
+test_calendar2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bxh, *cal, *cal2, *cal3, *en;
Elm_Calendar_Mark *mark;
diff --git a/legacy/elementary/src/bin/test_carousel.c b/legacy/elementary/src/bin/test_carousel.c
index 1c09ff852b..74298431f4 100644
--- a/legacy/elementary/src/bin/test_carousel.c
+++ b/legacy/elementary/src/bin/test_carousel.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_carousel(void *data, Evas_Object *obj, void *event_info)
+test_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg;
diff --git a/legacy/elementary/src/bin/test_check.c b/legacy/elementary/src/bin/test_check.c
index f553661458..6d41324172 100644
--- a/legacy/elementary/src/bin/test_check.c
+++ b/legacy/elementary/src/bin/test_check.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_check(void *data, Evas_Object *obj, void *event_info)
+test_check(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ic, *ck;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_clock.c b/legacy/elementary/src/bin/test_clock.c
index 937c8dac52..b8b4a84ab2 100644
--- a/legacy/elementary/src/bin/test_clock.c
+++ b/legacy/elementary/src/bin/test_clock.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_clock(void *data, Evas_Object *obj, void *event_info)
+test_clock(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ck;
unsigned int digedit;
@@ -67,7 +70,7 @@ test_clock(void *data, Evas_Object *obj, void *event_info)
}
static void
-_edit_bt_clicked(void *data, Evas_Object *obj, void *event_info)
+_edit_bt_clicked(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *ck = data;
@@ -81,7 +84,7 @@ _edit_bt_clicked(void *data, Evas_Object *obj, void *event_info)
}
static void
-_hmode_bt_clicked(void *data, Evas_Object *obj, void *event_info)
+_hmode_bt_clicked(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *ck = data;
@@ -95,7 +98,7 @@ _hmode_bt_clicked(void *data, Evas_Object *obj, void *event_info)
}
void
-test_clock2(void *data, Evas_Object *obj, void *event_info)
+test_clock2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *hbx, *ck, *bt;
diff --git a/legacy/elementary/src/bin/test_colorpicker.c b/legacy/elementary/src/bin/test_colorpicker.c
index 19676c75d7..08d1bdcacf 100644
--- a/legacy/elementary/src/bin/test_colorpicker.c
+++ b/legacy/elementary/src/bin/test_colorpicker.c
@@ -1,8 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-_colorpicker_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+_colorpicker_clicked_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *re = data;
int r, g, b, a;
@@ -19,7 +22,7 @@ _colorpicker_clicked_cb(void *data, Evas_Object *obj, void *event_info)
}
void
-test_colorpicker(void *data, Evas_Object *obj, void *event_info)
+test_colorpicker(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *cp, *fr, *ly, *re;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_conform.c b/legacy/elementary/src/bin/test_conform.c
index 8e60281b84..ca7d03da38 100644
--- a/legacy/elementary/src/bin/test_conform.c
+++ b/legacy/elementary/src/bin/test_conform.c
@@ -1,8 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_conformant(void *data, Evas_Object *obj, void *event)
+test_conformant(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
{
Evas_Object *win, *bg, *conform, *btn, *bx, *en;
diff --git a/legacy/elementary/src/bin/test_cursor.c b/legacy/elementary/src/bin/test_cursor.c
index 8fd10c66ee..0d42bbbe4f 100644
--- a/legacy/elementary/src/bin/test_cursor.c
+++ b/legacy/elementary/src/bin/test_cursor.c
@@ -1,5 +1,8 @@
#include <Elementary.h>
#include <Elementary_Cursor.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct _Testitem
@@ -13,7 +16,7 @@ typedef struct _Testitem
static Elm_Gengrid_Item_Class gic;
char *
-grd_lbl_get(void *data, Evas_Object *obj, const char *part)
+grd_lbl_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
const Testitem *ti = data;
char buf[256];
@@ -40,7 +43,7 @@ grd_icon_get(void *data, Evas_Object *obj, const char *part)
static Elm_Genlist_Item_Class itct;
static void
-glt_exp(void *data, Evas_Object *obj, void *event_info)
+glt_exp(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
Evas_Object *gl = elm_genlist_item_genlist_get(it);
@@ -62,28 +65,28 @@ glt_exp(void *data, Evas_Object *obj, void *event_info)
}
static void
-glt_con(void *data, Evas_Object *obj, void *event_info)
+glt_con(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
elm_genlist_item_subitems_clear(it);
}
static void
-glt_exp_req(void *data, Evas_Object *obj, void *event_info)
+glt_exp_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
-glt_con_req(void *data, Evas_Object *obj, void *event_info)
+glt_con_req(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
elm_genlist_item_expanded_set(it, 0);
}
char *
-glt_label_get(void *data, Evas_Object *obj, const char *part)
+glt_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
snprintf(buf, sizeof(buf), "Item mode %i", (int)(long)data);
@@ -91,7 +94,7 @@ glt_label_get(void *data, Evas_Object *obj, const char *part)
}
void
-test_cursor(void *data, Evas_Object *obj, void *event_info)
+test_cursor(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bt, *list, *entry, *ck;
Elm_List_Item *lit;
@@ -157,7 +160,7 @@ test_cursor(void *data, Evas_Object *obj, void *event_info)
}
void
-test_cursor2(void *data, Evas_Object *obj, void *event_info)
+test_cursor2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *o, *grid, *gl;
Elm_Genlist_Item *it1, *it2, *it3;
@@ -282,7 +285,7 @@ test_cursor2(void *data, Evas_Object *obj, void *event_info)
}
void
-test_cursor3(void *data, Evas_Object *obj, void *event_info)
+test_cursor3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *o;
Elm_List_Item *lit;
diff --git a/legacy/elementary/src/bin/test_diskpicker.c b/legacy/elementary/src/bin/test_diskpicker.c
index bc3c3a2297..e455ac6447 100644
--- a/legacy/elementary/src/bin/test_diskpicker.c
+++ b/legacy/elementary/src/bin/test_diskpicker.c
@@ -1,15 +1,18 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-_disk_sel(void *data, Evas_Object * obj, void *event_info)
+_disk_sel(void *data __UNUSED__, Evas_Object * obj __UNUSED__, void *event_info)
{
Elm_Diskpicker_Item *it = event_info;
printf("Equinox: %s\n", elm_diskpicker_item_label_get(it));
}
static void
-_disk_next(void *data, Evas_Object * obj, void *event_info)
+_disk_next(void *data __UNUSED__, Evas_Object * obj __UNUSED__, void *event_info)
{
Elm_Diskpicker_Item *next, *prev, *it = event_info;
prev = elm_diskpicker_item_prev(it);
@@ -19,7 +22,7 @@ _disk_next(void *data, Evas_Object * obj, void *event_info)
}
static void
-_print_disk_info_cb(void *data, Evas_Object *obj, void *event_info)
+_print_disk_info_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Diskpicker_Item *it = event_info;
printf("Selected label: %s\n", elm_diskpicker_item_label_get(it));
@@ -53,7 +56,7 @@ _disk_create(Evas_Object *win, Eina_Bool round)
}
void
-test_diskpicker(void *data, Evas_Object *obj, void *event_info)
+test_diskpicker(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *disk, *ic;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_entry.c b/legacy/elementary/src/bin/test_entry.c
index 08b2615378..e41624d72d 100644
--- a/legacy/elementary/src/bin/test_entry.c
+++ b/legacy/elementary/src/bin/test_entry.c
@@ -1,14 +1,17 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-my_entry_bt_1(void *data, Evas_Object *obj, void *event_info)
+my_entry_bt_1(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_entry_entry_set(en, "");
}
static void
-my_entry_bt_2(void *data, Evas_Object *obj, void *event_info)
+my_entry_bt_2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
const char *s = elm_entry_entry_get(en);
@@ -27,7 +30,7 @@ my_entry_bt_2(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_entry_bt_3(void *data, Evas_Object *obj, void *event_info)
+my_entry_bt_3(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
const char *s = elm_entry_selection_get(en);
@@ -46,14 +49,14 @@ my_entry_bt_3(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_entry_bt_4(void *data, Evas_Object *obj, void *event_info)
+my_entry_bt_4(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_entry_entry_insert(en, "Insert some <b>BOLD</> text");
}
void
-test_entry(void *data, Evas_Object *obj, void *event_info)
+test_entry(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bx2, *bt, *en;
@@ -159,14 +162,14 @@ test_entry(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_scrolled_entry_bt_1(void *data, Evas_Object *obj, void *event_info)
+my_scrolled_entry_bt_1(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_entry_set(en, "");
}
static void
-my_scrolled_entry_bt_2(void *data, Evas_Object *obj, void *event_info)
+my_scrolled_entry_bt_2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
const char *s = elm_scrolled_entry_entry_get(en);
@@ -185,7 +188,7 @@ my_scrolled_entry_bt_2(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_scrolled_entry_bt_3(void *data, Evas_Object *obj, void *event_info)
+my_scrolled_entry_bt_3(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
const char *s = elm_scrolled_entry_selection_get(en);
@@ -204,14 +207,14 @@ my_scrolled_entry_bt_3(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_scrolled_entry_bt_4(void *data, Evas_Object *obj, void *event_info)
+my_scrolled_entry_bt_4(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_entry_insert(en, "Insert some <b>BOLD</> text");
}
static void
-my_scrolled_entry_bt_5(void *data, Evas_Object *obj, void *event_info)
+my_scrolled_entry_bt_5(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
const char *s = elm_scrolled_entry_entry_get(en);
@@ -219,14 +222,14 @@ my_scrolled_entry_bt_5(void *data, Evas_Object *obj, void *event_info)
}
static void
-scrolled_anchor_test(void *data, Evas_Object *obj, void *event_info)
+scrolled_anchor_test(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_entry_insert(en, "ANCHOR CLICKED");
}
void
-test_entry_scrolled(void *data, Evas_Object *obj, void *event_info)
+test_entry_scrolled(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bx2, *bt, *en, *en_p, *sp;
static Elm_Entry_Filter_Accept_Set digits_filter_data, digits_filter_data2;
@@ -477,14 +480,14 @@ test_entry_scrolled(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_ent_bt_clr(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_clr(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_entry_set(en, "");
}
static void
-my_ent_bt_pri(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_pri(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
const char *s = elm_scrolled_entry_entry_get(en);
@@ -503,7 +506,7 @@ my_ent_bt_pri(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_ent_bt_sel(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_sel(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
const char *s = elm_scrolled_entry_selection_get(en);
@@ -522,98 +525,98 @@ my_ent_bt_sel(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_ent_bt_all(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_all(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_select_all(en);
}
static void
-my_ent_bt_non(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_non(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_select_none(en);
}
static void
-my_ent_bt_ins(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_ins(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_entry_insert(en, "Insert text");
}
static void
-my_ent_bt_lef(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_lef(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_prev(en);
}
static void
-my_ent_bt_rig(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_rig(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_next(en);
}
static void
-my_ent_bt_up_(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_up_(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_up(en);
}
static void
-my_ent_bt_dow(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_dow(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_down(en);
}
static void
-my_ent_bt_beg(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_beg(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_begin_set(en);
}
static void
-my_ent_bt_end(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_end(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_end_set(en);
}
static void
-my_ent_bt_lbe(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_lbe(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_line_begin_set(en);
}
static void
-my_ent_bt_len(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_len(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_line_end_set(en);
}
static void
-my_ent_bt_sbe(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_sbe(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_selection_begin(en);
}
static void
-my_ent_bt_sen(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_sen(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_cursor_selection_end(en);
}
static void
-my_ent_bt_fmt(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_fmt(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
printf("IS FORMAT: %i\n",
@@ -621,7 +624,7 @@ my_ent_bt_fmt(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_ent_bt_vfm(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_vfm(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
printf("IS VISIBLE FORMAT %i\n",
@@ -629,35 +632,35 @@ my_ent_bt_vfm(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_ent_bt_chr(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_chr(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
printf("CHAR '%s'\n", elm_scrolled_entry_cursor_content_get(en));
}
static void
-my_ent_bt_cut(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_cut(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_selection_cut(en);
}
static void
-my_ent_bt_cop(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_cop(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_selection_copy(en);
}
static void
-my_ent_bt_pas(void *data, Evas_Object *obj, void *event_info)
+my_ent_bt_pas(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *en = data;
elm_scrolled_entry_selection_paste(en);
}
void
-test_entry3(void *data, Evas_Object *obj, void *event_info)
+test_entry3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bx2, *bt, *en;
@@ -1217,7 +1220,7 @@ test_entry3(void *data, Evas_Object *obj, void *event_info)
}
void
-test_entry4(void *data, Evas_Object *obj, void *event_info)
+test_entry4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *ly, *en;
char buf[PATH_MAX];
@@ -1284,7 +1287,7 @@ test_entry4(void *data, Evas_Object *obj, void *event_info)
}
void
-test_entry5(void *data, Evas_Object *obj, void *event_info)
+test_entry5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bx2, *bt, *en;
diff --git a/legacy/elementary/src/bin/test_fileselector.c b/legacy/elementary/src/bin/test_fileselector.c
index e5192c4e44..d3136b0675 100644
--- a/legacy/elementary/src/bin/test_fileselector.c
+++ b/legacy/elementary/src/bin/test_fileselector.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-my_fileselector_done(void *data, Evas_Object *obj, void *event_info)
+my_fileselector_done(void *data, Evas_Object *obj __UNUSED__, void *event_info)
{
/* event_info conatin the full path of the selected file
* or NULL if none is selected or cancel is pressed */
@@ -14,7 +17,7 @@ my_fileselector_done(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_fileselector_selected(void *data, Evas_Object *obj, void *event_info)
+my_fileselector_selected(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
/* event_info conatin the full path of the selected file */
const char *selected = event_info;
@@ -25,7 +28,7 @@ my_fileselector_selected(void *data, Evas_Object *obj, void *event_info)
}
static void
-_is_save_clicked(void *data, Evas_Object *obj, void *event_info)
+_is_save_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs = data;
printf("Toggle Is save\n");
@@ -36,14 +39,14 @@ _is_save_clicked(void *data, Evas_Object *obj, void *event_info)
}
static void
-_sel_get_clicked(void *data, Evas_Object *obj, void *event_info)
+_sel_get_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs = data;
printf("Get Selected: %s\n", elm_fileselector_selected_get(fs));
}
void
-test_fileselector(void *data, Evas_Object *obj, void *event_info)
+test_fileselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *fs, *bg, *vbox, *hbox, *bt;
diff --git a/legacy/elementary/src/bin/test_fileselector_button.c b/legacy/elementary/src/bin/test_fileselector_button.c
index 91271be56d..80412b48ed 100644
--- a/legacy/elementary/src/bin/test_fileselector_button.c
+++ b/legacy/elementary/src/bin/test_fileselector_button.c
@@ -1,8 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-_file_chosen(void *data, Evas_Object *obj, void *event_info)
+_file_chosen(void *data, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *entry = data;
const char *file = event_info;
@@ -16,7 +19,7 @@ _file_chosen(void *data, Evas_Object *obj, void *event_info)
}
static void
-_inwin_mode_toggle(void *data, Evas_Object *obj, void *event_info)
+_inwin_mode_toggle(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs_bt = data;
Eina_Bool value = elm_fileselector_button_inwin_mode_get(fs_bt);
@@ -25,7 +28,7 @@ _inwin_mode_toggle(void *data, Evas_Object *obj, void *event_info)
}
static void
-_current_sel_toggle(void *data, Evas_Object *obj, void *event_info)
+_current_sel_toggle(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs_bt = data;
Eina_Bool value = elm_fileselector_button_folder_only_get(fs_bt);
@@ -35,7 +38,7 @@ _current_sel_toggle(void *data, Evas_Object *obj, void *event_info)
}
static void
-_folder_only_toggle(void *data, Evas_Object *obj, void *event_info)
+_folder_only_toggle(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs_bt = data;
Eina_Bool value = elm_fileselector_button_folder_only_get(fs_bt);
@@ -44,7 +47,7 @@ _folder_only_toggle(void *data, Evas_Object *obj, void *event_info)
}
static void
-_expandable_toggle(void *data, Evas_Object *obj, void *event_info)
+_expandable_toggle(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs_bt = data;
Eina_Bool value = elm_fileselector_button_expandable_get(fs_bt);
@@ -53,7 +56,7 @@ _expandable_toggle(void *data, Evas_Object *obj, void *event_info)
}
void
-test_fileselector_button(void *data, Evas_Object *obj, void *event_info)
+test_fileselector_button(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *vbox, *hbox, *ic, *bt, *fs_bt, *en, *lb;
diff --git a/legacy/elementary/src/bin/test_fileselector_entry.c b/legacy/elementary/src/bin/test_fileselector_entry.c
index a402d2ef4b..11d37a8cbb 100644
--- a/legacy/elementary/src/bin/test_fileselector_entry.c
+++ b/legacy/elementary/src/bin/test_fileselector_entry.c
@@ -1,8 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-_file_chosen(void *data, Evas_Object *obj, void *event_info)
+_file_chosen(void *data, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *entry = data;
char *file = event_info;
@@ -11,7 +14,7 @@ _file_chosen(void *data, Evas_Object *obj, void *event_info)
}
static void
-_inwin_mode_toggle(void *data, Evas_Object *obj, void *event_info)
+_inwin_mode_toggle(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs_en = data;
Eina_Bool value = elm_fileselector_entry_inwin_mode_get(fs_en);
@@ -20,7 +23,7 @@ _inwin_mode_toggle(void *data, Evas_Object *obj, void *event_info)
}
static void
-_folder_only_toggle(void *data, Evas_Object *obj, void *event_info)
+_folder_only_toggle(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs_en = data;
Evas_Object *ic = elm_fileselector_entry_button_icon_get(fs_en);
@@ -40,7 +43,7 @@ _folder_only_toggle(void *data, Evas_Object *obj, void *event_info)
}
static void
-_expandable_toggle(void *data, Evas_Object *obj, void *event_info)
+_expandable_toggle(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs_en = data;
Eina_Bool value = elm_fileselector_entry_expandable_get(fs_en);
@@ -49,7 +52,7 @@ _expandable_toggle(void *data, Evas_Object *obj, void *event_info)
}
static void
-_disabled_toggle(void *data, Evas_Object *obj, void *event_info)
+_disabled_toggle(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fs_en = data;
Eina_Bool value = elm_object_disabled_get(fs_en);
@@ -58,7 +61,7 @@ _disabled_toggle(void *data, Evas_Object *obj, void *event_info)
}
void
-test_fileselector_entry(void *data, Evas_Object *obj, void *event_info)
+test_fileselector_entry(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *vbox, *hbox, *ic, *bt, *fs_en, *en, *lb;
diff --git a/legacy/elementary/src/bin/test_flip.c b/legacy/elementary/src/bin/test_flip.c
index e839cccd18..ac3b404181 100644
--- a/legacy/elementary/src/bin/test_flip.c
+++ b/legacy/elementary/src/bin/test_flip.c
@@ -1,64 +1,67 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-my_fl_1(void *data, Evas_Object *obj, void *event_info)
+my_fl_1(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fl = data;
elm_flip_go(fl, ELM_FLIP_ROTATE_Y_CENTER_AXIS);
}
void
-my_fl_2(void *data, Evas_Object *obj, void *event_info)
+my_fl_2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fl = data;
elm_flip_go(fl, ELM_FLIP_ROTATE_X_CENTER_AXIS);
}
void
-my_fl_3(void *data, Evas_Object *obj, void *event_info)
+my_fl_3(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fl = data;
elm_flip_go(fl, ELM_FLIP_ROTATE_XZ_CENTER_AXIS);
}
void
-my_fl_4(void *data, Evas_Object *obj, void *event_info)
+my_fl_4(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fl = data;
elm_flip_go(fl, ELM_FLIP_ROTATE_YZ_CENTER_AXIS);
}
void
-my_fl_5(void *data, Evas_Object *obj, void *event_info)
+my_fl_5(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fl = data;
elm_flip_go(fl, ELM_FLIP_CUBE_LEFT);
}
void
-my_fl_6(void *data, Evas_Object *obj, void *event_info)
+my_fl_6(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fl = data;
elm_flip_go(fl, ELM_FLIP_CUBE_RIGHT);
}
void
-my_fl_7(void *data, Evas_Object *obj, void *event_info)
+my_fl_7(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fl = data;
elm_flip_go(fl, ELM_FLIP_CUBE_UP);
}
void
-my_fl_8(void *data, Evas_Object *obj, void *event_info)
+my_fl_8(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *fl = data;
elm_flip_go(fl, ELM_FLIP_CUBE_DOWN);
}
void
-test_flip(void *data, Evas_Object *obj, void *event_info)
+test_flip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bx2, *fl, *o, *bt, *ly;
char buf[PATH_MAX];
@@ -201,7 +204,7 @@ test_flip(void *data, Evas_Object *obj, void *event_info)
}
void
-test_flip2(void *data, Evas_Object *obj, void *event_info)
+test_flip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bx2, *fl, *o, *bt, *tb, *li;
char buf[PATH_MAX];
@@ -343,7 +346,7 @@ test_flip2(void *data, Evas_Object *obj, void *event_info)
}
void
-test_flip3(void *data, Evas_Object *obj, void *event_info)
+test_flip3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bx2, *fl, *fl_f, *fl_b, *o, *bt, *fr;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_floating.c b/legacy/elementary/src/bin/test_floating.c
index fb91ddaa4d..96764d68dc 100644
--- a/legacy/elementary/src/bin/test_floating.c
+++ b/legacy/elementary/src/bin/test_floating.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct _Testitem
{
@@ -9,14 +12,14 @@ typedef struct _Testitem
static Elm_Genlist_Item_Class itc1;
-static char *glf_label_get(void *data, Evas_Object *obj, const char *part)
+static char *glf_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
snprintf(buf, sizeof(buf), "Item # %i", (int)(long)data);
return strdup(buf);
}
-static Evas_Object *glf_icon_get(void *data, Evas_Object *obj, const char *part)
+static Evas_Object *glf_icon_get(void *data __UNUSED__, Evas_Object *obj, const char *part __UNUSED__)
{
char buf[PATH_MAX];
Evas_Object *ic = elm_icon_add(obj);
@@ -25,11 +28,11 @@ static Evas_Object *glf_icon_get(void *data, Evas_Object *obj, const char *part)
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
-static Eina_Bool glf_state_get(void *data, Evas_Object *obj, const char *part)
+static Eina_Bool glf_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-static void glf_del(void *data, Evas_Object *obj)
+static void glf_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
@@ -52,7 +55,7 @@ anim(void *data)
}
static void
-_del(void *data, Evas *evas, Evas_Object *obj, void *event_info)
+_del(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Ecore_Animator *ani = data;
@@ -60,7 +63,7 @@ _del(void *data, Evas *evas, Evas_Object *obj, void *event_info)
}
void
-test_floating(void *data, Evas_Object *obj, void *event_info)
+test_floating(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl;
int i;
diff --git a/legacy/elementary/src/bin/test_focus.c b/legacy/elementary/src/bin/test_focus.c
index 39c9a48c35..4ee4916ac7 100644
--- a/legacy/elementary/src/bin/test_focus.c
+++ b/legacy/elementary/src/bin/test_focus.c
@@ -1,8 +1,11 @@
/* Test for Focus Chain Linear*/
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
static void
-_on_key_down(void *data, Evas *e, Evas_Object *obj, void *einfo)
+_on_key_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *einfo __UNUSED__)
{
//Evas_Event_Key_Down *event = einfo;
//printf("%s %p Key %s Parent %p\n", evas_object_type_get(obj),
@@ -18,7 +21,7 @@ my_show(Evas_Object *obj)
}
void
-test_focus(void *data, Evas_Object *obj, void *event_info)
+test_focus(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win;
unsigned int i, j;
diff --git a/legacy/elementary/src/bin/test_focus2.c b/legacy/elementary/src/bin/test_focus2.c
index 5e1bcd2e23..0dd311cac5 100644
--- a/legacy/elementary/src/bin/test_focus2.c
+++ b/legacy/elementary/src/bin/test_focus2.c
@@ -1,8 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-_focus_in(void *data, Evas *e, void *event_info)
+_focus_in(void *data __UNUSED__, Evas *e __UNUSED__, void *event_info)
{
const char *type = evas_object_type_get(event_info);
if (type && strcmp(type, "elm_widget") == 0)
@@ -11,7 +14,7 @@ _focus_in(void *data, Evas *e, void *event_info)
}
static void
-_focus_out(void *data, Evas *e, void *event_info)
+_focus_out(void *data __UNUSED__, Evas *e __UNUSED__, void *event_info)
{
const char *type = evas_object_type_get(event_info);
if (type && strcmp(type, "elm_widget") == 0)
@@ -20,7 +23,7 @@ _focus_out(void *data, Evas *e, void *event_info)
}
static void
-_focus_obj(void *data, Evas_Object *o, void *event_info)
+_focus_obj(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *newfocus = data;
const char *type = evas_object_type_get(newfocus);
@@ -31,7 +34,7 @@ _focus_obj(void *data, Evas_Object *o, void *event_info)
}
static void
-_focus_layout_part(void *data, Evas_Object *o, void *event_info)
+_focus_layout_part(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *ed = elm_layout_edje_get(data);
@@ -43,7 +46,7 @@ _focus_layout_part(void *data, Evas_Object *o, void *event_info)
void
-test_focus2(void *data, Evas_Object *obj, void *event_info)
+test_focus2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ly, *bt, *en, *bt1;
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index fe79d9ef0b..1f928b9d9d 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct _Testitem
{
@@ -24,55 +27,55 @@ static const char *img[9] =
static Elm_Gengrid_Item_Class gic;
static void
-grid_drag_up(void *data, Evas_Object *obj, void *event_info)
+grid_drag_up(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("Drag up: %p\n", event_info);
}
static void
-grid_drag_right(void *data, Evas_Object *obj, void *event_info)
+grid_drag_right(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("Drag right: %p\n", event_info);
}
static void
-grid_drag_down(void *data, Evas_Object *obj, void *event_info)
+grid_drag_down(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("Drag down: %p\n", event_info);
}
static void
-grid_drag_left(void *data, Evas_Object *obj, void *event_info)
+grid_drag_left(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("Drag left: %p\n", event_info);
}
static void
-grid_drag_stop(void *data, Evas_Object *obj, void *event_info)
+grid_drag_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("Drag stop: %p\n", event_info);
}
static void
-grid_selected(void *data, Evas_Object *obj, void *event_info)
+grid_selected(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("Selected: %p\n", event_info);
}
static void
-grid_clicked(void *data, Evas_Object *obj, void *event_info)
+grid_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("Clicked: %p\n", event_info);
}
static void
-grid_longpress(void *data, Evas_Object *obj, void *event_info)
+grid_longpress(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("longpress %p\n", event_info);
}
static void
-grid_item_check_changed(void *data, Evas_Object *obj, void *event_info)
+grid_item_check_changed(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Testitem *ti = data;
ti->onoff = elm_check_state_get(obj);
@@ -80,7 +83,7 @@ grid_item_check_changed(void *data, Evas_Object *obj, void *event_info)
}
char *
-grid_label_get(void *data, Evas_Object *obj, const char *part)
+grid_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
const Testitem *ti = data;
char buf[256];
@@ -115,13 +118,13 @@ grid_icon_get(void *data, Evas_Object *obj, const char *part)
}
Eina_Bool
-grid_state_get(void *data, Evas_Object *obj, const char *part)
+grid_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
void
-grid_del(void *data, Evas_Object *obj)
+grid_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
@@ -132,7 +135,7 @@ grid_sel(void *data, Evas_Object *obj, void *event_info)
}
void
-test_gengrid(void *data, Evas_Object *obj, void *event_info)
+test_gengrid(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *grid;
static Testitem ti[144];
@@ -188,7 +191,7 @@ test_gengrid(void *data, Evas_Object *obj, void *event_info)
}
static void
-_before_bt_clicked(void *data, Evas_Object *obj, void *event_info)
+_before_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Testitem *ti;
Evas_Object *grid = data;
@@ -207,7 +210,7 @@ _before_bt_clicked(void *data, Evas_Object *obj, void *event_info)
}
static void
-_after_bt_clicked(void *data, Evas_Object *obj, void *event_info)
+_after_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Testitem *ti;
Evas_Object *grid = data;
@@ -226,7 +229,7 @@ _after_bt_clicked(void *data, Evas_Object *obj, void *event_info)
}
static void
-_prepend_bt_clicked(void *data, Evas_Object *obj, void *event_info)
+_prepend_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Testitem *ti;
Evas_Object *grid = data;
@@ -240,7 +243,7 @@ _prepend_bt_clicked(void *data, Evas_Object *obj, void *event_info)
}
static void
-_append_bt_clicked(void *data, Evas_Object *obj, void *event_info)
+_append_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Testitem *ti;
Evas_Object *grid = data;
@@ -254,7 +257,7 @@ _append_bt_clicked(void *data, Evas_Object *obj, void *event_info)
}
static void
-_size_changed(void *data, Evas_Object *obj, void *event_info)
+_size_changed(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *grid = data;
int size = elm_spinner_value_get(obj);
@@ -262,7 +265,7 @@ _size_changed(void *data, Evas_Object *obj, void *event_info)
}
void
-test_gengrid2(void *data, Evas_Object *obj, void *event_info)
+test_gengrid2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *grid, *bx, *hbx, *bt;
diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c
index 55073a6a89..695b01c76a 100644
--- a/legacy/elementary/src/bin/test_genlist.c
+++ b/legacy/elementary/src/bin/test_genlist.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
/* Hint:
@@ -18,14 +21,14 @@ typedef struct _Testitem
static Elm_Genlist_Item_Class itc1;
-char *gl_label_get(void *data, Evas_Object *obj, const char *part)
+char *gl_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
snprintf(buf, sizeof(buf), "Item # %i", (int)(long)data);
return strdup(buf);
}
-Evas_Object *gl_icon_get(void *data, Evas_Object *obj, const char *part)
+Evas_Object *gl_icon_get(void *data __UNUSED__, Evas_Object *obj, const char *part __UNUSED__)
{
char buf[PATH_MAX];
Evas_Object *ic = elm_icon_add(obj);
@@ -34,11 +37,11 @@ Evas_Object *gl_icon_get(void *data, Evas_Object *obj, const char *part)
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
-Eina_Bool gl_state_get(void *data, Evas_Object *obj, const char *part)
+Eina_Bool gl_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl_del(void *data, Evas_Object *obj)
+void gl_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
@@ -49,7 +52,7 @@ gl_sel(void *data, Evas_Object *obj, void *event_info)
}
static void
-_move(void *data, Evas *evas, Evas_Object *obj, void *event_info)
+_move(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *gl = data;
Evas_Event_Mouse_Move *ev = event_info;
@@ -63,37 +66,37 @@ _move(void *data, Evas *evas, Evas_Object *obj, void *event_info)
}
static void
-_bt50_cb(void *data, Evas_Object *obj, void *event_info)
+_bt50_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_genlist_item_bring_in(data);
}
static void
-_bt1500_cb(void *data, Evas_Object *obj, void *event_info)
+_bt1500_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_genlist_item_middle_bring_in(data);
}
static void
-_gl_selected(void *data, Evas_Object *obj, void *event_info)
+_gl_selected(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("selected: %p\n", event_info);
}
static void
-_gl_clicked(void *data, Evas_Object *obj, void *event_info)
+_gl_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("clicked: %p\n", event_info);
}
static void
-_gl_longpress(void *data, Evas_Object *obj, void *event_info)
+_gl_longpress(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
printf("longpress %p\n", event_info);
}
void
-test_genlist(void *data, Evas_Object *obj, void *event_info)
+test_genlist(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl, *bt_50, *bt_1500, *bx;
Evas_Object *over;
@@ -170,14 +173,14 @@ test_genlist(void *data, Evas_Object *obj, void *event_info)
/*************/
static void
-my_gl_clear(void *data, Evas_Object *obj, void *event_info)
+my_gl_clear(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
elm_genlist_clear(gl);
}
static void
-my_gl_add(void *data, Evas_Object *obj, void *event_info)
+my_gl_add(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
static int i = 0;
@@ -198,7 +201,7 @@ my_gl_add(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_gl_insert_before(void *data, Evas_Object *obj, void *event_info)
+my_gl_insert_before(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
static int i = 0;
@@ -227,7 +230,7 @@ my_gl_insert_before(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_gl_insert_after(void *data, Evas_Object *obj, void *event_info)
+my_gl_insert_after(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
static int i = 0;
@@ -256,7 +259,7 @@ my_gl_insert_after(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_gl_del(void *data, Evas_Object *obj, void *event_info)
+my_gl_del(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
Elm_Genlist_Item *gli = elm_genlist_selected_item_get(gl);
@@ -269,7 +272,7 @@ my_gl_del(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_gl_disable(void *data, Evas_Object *obj, void *event_info)
+my_gl_disable(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
Elm_Genlist_Item *gli = elm_genlist_selected_item_get(gl);
@@ -284,7 +287,7 @@ my_gl_disable(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_gl_update_all(void *data, Evas_Object *obj, void *event_info)
+my_gl_update_all(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
int i = 0;
@@ -299,7 +302,7 @@ my_gl_update_all(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_gl_first(void *data, Evas_Object *obj, void *event_info)
+my_gl_first(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
Elm_Genlist_Item *gli = elm_genlist_first_item_get(gl);
@@ -309,7 +312,7 @@ my_gl_first(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_gl_last(void *data, Evas_Object *obj, void *event_info)
+my_gl_last(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *gl = data;
Elm_Genlist_Item *gli = elm_genlist_last_item_get(gl);
@@ -319,20 +322,20 @@ my_gl_last(void *data, Evas_Object *obj, void *event_info)
}
static Eina_Bool
-my_gl_flush_delay(void *data)
+my_gl_flush_delay(void *data __UNUSED__)
{
elm_all_flush();
return ECORE_CALLBACK_CANCEL;
}
static void
-my_gl_flush(void *data, Evas_Object *obj, void *event_info)
+my_gl_flush(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
ecore_timer_add(1.2, my_gl_flush_delay, NULL);
}
void
-test_genlist2(void *data, Evas_Object *obj, void *event_info)
+test_genlist2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl, *bx, *bx2, *bx3, *bt;
Elm_Genlist_Item *gli[10];
@@ -504,7 +507,7 @@ test_genlist2(void *data, Evas_Object *obj, void *event_info)
/*************/
static Elm_Genlist_Item_Class itc2;
-char *gl2_label_get(void *data, Evas_Object *obj, const char *part)
+char *gl2_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
const Testitem *tit = data;
char buf[256];
@@ -543,16 +546,16 @@ Evas_Object *gl2_icon_get(void *data, Evas_Object *obj, const char *part)
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
-Eina_Bool gl2_state_get(void *data, Evas_Object *obj, const char *part)
+Eina_Bool gl2_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl2_del(void *data, Evas_Object *obj)
+void gl2_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
static void
-my_gl_update(void *data, Evas_Object *obj, void *event_info)
+my_gl_update(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Testitem *tit = data;
tit->mode++;
@@ -560,7 +563,7 @@ my_gl_update(void *data, Evas_Object *obj, void *event_info)
}
void
-test_genlist3(void *data, Evas_Object *obj, void *event_info)
+test_genlist3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl, *bx, *bx2, *bt;
static Testitem tit[3];
@@ -646,7 +649,7 @@ test_genlist3(void *data, Evas_Object *obj, void *event_info)
/*************/
static void
-my_gl_item_check_changed(void *data, Evas_Object *obj, void *event_info)
+my_gl_item_check_changed(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Testitem *tit = data;
tit->onoff = elm_check_state_get(obj);
@@ -654,7 +657,7 @@ my_gl_item_check_changed(void *data, Evas_Object *obj, void *event_info)
}
static Elm_Genlist_Item_Class itc3;
-char *gl3_label_get(void *data, Evas_Object *obj, const char *part)
+char *gl3_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
const Testitem *tit = data;
char buf[256];
@@ -687,16 +690,16 @@ Evas_Object *gl3_icon_get(void *data, Evas_Object *obj, const char *part)
}
return NULL;
}
-Eina_Bool gl3_state_get(void *data, Evas_Object *obj, const char *part)
+Eina_Bool gl3_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl3_del(void *data, Evas_Object *obj)
+void gl3_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
void
-test_genlist4(void *data, Evas_Object *obj, void *event_info)
+test_genlist4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl, *bx, *bx2, *bt;
static Testitem tit[3];
@@ -783,7 +786,7 @@ test_genlist4(void *data, Evas_Object *obj, void *event_info)
/*************/
static void
-my_gl_item_check_changed2(void *data, Evas_Object *obj, void *event_info)
+my_gl_item_check_changed2(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Testitem *tit = data;
tit->onoff = elm_check_state_get(obj);
@@ -791,7 +794,7 @@ my_gl_item_check_changed2(void *data, Evas_Object *obj, void *event_info)
}
static Elm_Genlist_Item_Class itc5;
-char *gl5_label_get(void *data, Evas_Object *obj, const char *part)
+char *gl5_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part)
{
const Testitem *tit = data;
char buf[256];
@@ -841,58 +844,58 @@ Evas_Object *gl5_icon_get(void *data, Evas_Object *obj, const char *part)
}
return NULL;
}
-Eina_Bool gl5_state_get(void *data, Evas_Object *obj, const char *part)
+Eina_Bool gl5_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl5_del(void *data, Evas_Object *obj)
+void gl5_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
static void
-item_drag_up(void *data, Evas_Object *obj, void *event_info)
+item_drag_up(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("drag up\n");
}
static void
-item_drag_down(void *data, Evas_Object *obj, void *event_info)
+item_drag_down(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("drag down\n");
}
static void
-item_drag_left(void *data, Evas_Object *obj, void *event_info)
+item_drag_left(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("drag left\n");
}
static void
-item_drag_right(void *data, Evas_Object *obj, void *event_info)
+item_drag_right(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("drag right\n");
}
static void
-item_drag(void *data, Evas_Object *obj, void *event_info)
+item_drag(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("drag\n");
}
static void
-item_drag_stop(void *data, Evas_Object *obj, void *event_info)
+item_drag_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("drag stop\n");
}
static void
-item_longpress(void *data, Evas_Object *obj, void *event_info)
+item_longpress(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("longpress\n");
}
void
-test_genlist5(void *data, Evas_Object *obj, void *event_info)
+test_genlist5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl, *bx, *bx2, *bt;
static Testitem tit[3];
@@ -988,7 +991,7 @@ test_genlist5(void *data, Evas_Object *obj, void *event_info)
static Elm_Genlist_Item_Class itc4;
static void
-gl4_sel(void *data, Evas_Object *obj, void *event_info)
+gl4_sel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = (Elm_Genlist_Item *)event_info;
int depth = 0;
@@ -998,7 +1001,7 @@ gl4_sel(void *data, Evas_Object *obj, void *event_info)
}
static void
-gl4_exp(void *data, Evas_Object *obj, void *event_info)
+gl4_exp(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
Evas_Object *gl = elm_genlist_item_genlist_get(it);
@@ -1018,32 +1021,32 @@ gl4_exp(void *data, Evas_Object *obj, void *event_info)
NULL/* func data */);
}
static void
-gl4_con(void *data, Evas_Object *obj, void *event_info)
+gl4_con(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
elm_genlist_item_subitems_clear(it);
}
static void
-gl4_exp_req(void *data, Evas_Object *obj, void *event_info)
+gl4_exp_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
-gl4_con_req(void *data, Evas_Object *obj, void *event_info)
+gl4_con_req(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
elm_genlist_item_expanded_set(it, 0);
}
-char *gl4_label_get(void *data, Evas_Object *obj, const char *part)
+char *gl4_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
snprintf(buf, sizeof(buf), "Item mode %i", (int)(long)data);
return strdup(buf);
}
-Evas_Object *gl4_icon_get(void *data, Evas_Object *obj, const char *part)
+Evas_Object *gl4_icon_get(void *data __UNUSED__, Evas_Object *obj, const char *part)
{
char buf[PATH_MAX];
if (!strcmp(part, "elm.swallow.icon"))
@@ -1064,16 +1067,16 @@ Evas_Object *gl4_icon_get(void *data, Evas_Object *obj, const char *part)
}
return NULL;
}
-Eina_Bool gl4_state_get(void *data, Evas_Object *obj, const char *part)
+Eina_Bool gl4_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl4_del(void *data, Evas_Object *obj)
+void gl4_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
void
-test_genlist6(void *data, Evas_Object *obj, void *event_info)
+test_genlist6(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl, *bx, *bx2, *bt;
@@ -1165,7 +1168,7 @@ struct genlist7_data
};
static void
-test_genlist7_back_cb(void *data, Evas_Object *obj, void *event_info)
+test_genlist7_back_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
struct genlist7_data *info = data;
if (!info) return;
@@ -1174,7 +1177,7 @@ test_genlist7_back_cb(void *data, Evas_Object *obj, void *event_info)
}
static void
-test_genlist7_swipe(void *data, Evas_Object *obj, void *event_info)
+test_genlist7_swipe(void *data, Evas_Object *obj __UNUSED__, void *event_info)
{
struct genlist7_data *info = data;
Evas_Object *box, *entry, *button;
@@ -1210,7 +1213,7 @@ test_genlist7_swipe(void *data, Evas_Object *obj, void *event_info)
}
void
-test_genlist7(void *data, Evas_Object *obj, void *event_info)
+test_genlist7(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl, *pager;
static struct genlist7_data info;
diff --git a/legacy/elementary/src/bin/test_hover.c b/legacy/elementary/src/bin/test_hover.c
index 51e97f3ef1..f4b597ce3a 100644
--- a/legacy/elementary/src/bin/test_hover.c
+++ b/legacy/elementary/src/bin/test_hover.c
@@ -1,7 +1,8 @@
#include <Elementary.h>
+#include <elementary_config.h>
#ifndef ELM_LIB_QUICKLAUNCH
static void
-my_hover_bt(void *data, Evas_Object *obj, void *event_info)
+my_hover_bt(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *hv = data;
@@ -9,7 +10,7 @@ my_hover_bt(void *data, Evas_Object *obj, void *event_info)
}
void
-test_hover(void *data, Evas_Object *obj, void *event_info)
+test_hover(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bt, *hv, *ic;
char buf[PATH_MAX];
@@ -90,7 +91,7 @@ test_hover(void *data, Evas_Object *obj, void *event_info)
}
void
-test_hover2(void *data, Evas_Object *obj, void *event_info)
+test_hover2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bt, *hv, *ic;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_hoversel.c b/legacy/elementary/src/bin/test_hoversel.c
index cf8f3dabc1..40b68e2a95 100644
--- a/legacy/elementary/src/bin/test_hoversel.c
+++ b/legacy/elementary/src/bin/test_hoversel.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_hoversel(void *data, Evas_Object *obj, void *event_info)
+test_hoversel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bt, *ic;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_icon.c b/legacy/elementary/src/bin/test_icon.c
index 9101225089..966171b4c0 100644
--- a/legacy/elementary/src/bin/test_icon.c
+++ b/legacy/elementary/src/bin/test_icon.c
@@ -1,13 +1,16 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-icon_clicked(void *data, Evas_Object *obj, void *event_info)
+icon_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("clicked!\n");
}
void
-test_icon(void *data, Evas_Object *obj, void *event_info)
+test_icon(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *ic;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_icon_desktops.c b/legacy/elementary/src/bin/test_icon_desktops.c
index 1fc31d5c02..370d56b918 100644
--- a/legacy/elementary/src/bin/test_icon_desktops.c
+++ b/legacy/elementary/src/bin/test_icon_desktops.c
@@ -1,15 +1,19 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static Elm_Genlist_Item_Class it_desk;
static char *
-desk_gl_label_get(void *data, Evas_Object *obj, const char *part)
+desk_gl_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
#ifdef ELM_EFREET
Efreet_Desktop *d = (Efreet_Desktop *)data;
return strdup(d->name);
#else
return NULL;
+ (void)data;
#endif
}
static Evas_Object *
@@ -50,27 +54,33 @@ desk_gl_icon_get(void *data, Evas_Object *obj, const char *part)
return ic;
#else
return NULL;
+ (void)data;
+ (void)obj;
+ (void)part;
#endif
}
static void
-desk_gl_del(void *data, Evas_Object *obj)
+desk_gl_del(void *data, Evas_Object *obj __UNUSED__)
{
#ifdef ELM_EFREET
Efreet_Desktop *d = (Efreet_Desktop *)data;
efreet_desktop_free(d);
+#else
+ return;
+ (void)data;
#endif
}
#ifdef ELM_EFREET
static void
-desktop_sel(void *data, Evas_Object *obj, void *event_info)
+desktop_sel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("sel\n");
}
#endif
void
-test_icon_desktops(void *data, Evas_Object *obj, void *event_info)
+test_icon_desktops(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl;
#ifdef ELM_EFREET
diff --git a/legacy/elementary/src/bin/test_index.c b/legacy/elementary/src/bin/test_index.c
index 06564a42f4..5fc1a090a1 100644
--- a/legacy/elementary/src/bin/test_index.c
+++ b/legacy/elementary/src/bin/test_index.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static Elm_Genlist_Item_Class itci;
-char *gli_label_get(void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
int j = (long)data;
@@ -13,7 +16,7 @@ char *gli_label_get(void *data, Evas_Object *obj, const char *part)
}
void
-index_changed2(void *data, Evas_Object *obj, void *event_info)
+index_changed2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
// called on a change but delayed in case multiple changes happen in a
// short timespan
@@ -21,21 +24,21 @@ index_changed2(void *data, Evas_Object *obj, void *event_info)
}
void
-index_changed(void *data, Evas_Object *obj, void *event_info)
+index_changed(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// this is calld on every change, no matter how often
// elm_genlist_item_bring_in(event_info);
}
void
-index_selected(void *data, Evas_Object *obj, void *event_info)
+index_selected(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
// called on final select
elm_genlist_item_top_bring_in(event_info);
}
void
-test_index(void *data, Evas_Object *obj, void *event_info)
+test_index(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *gl, *id;
Elm_Genlist_Item *it;
@@ -100,7 +103,7 @@ typedef struct _Test_Index2_Elements
} Test_Index2_Elements;
void
-test_index2_del(void *data, Evas_Object *obj, void *event_info)
+test_index2_del(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
/* FIXME it won't be called if elm_test main window is closed */
free(data);
@@ -133,7 +136,7 @@ test_index2_icmp(const void *data1, const void *data2)
}
void
-test_index2_it_add(void *data, Evas_Object *obj, void *event_info)
+test_index2_it_add(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Test_Index2_Elements *gui = data;
Elm_List_Item *it;
@@ -152,7 +155,7 @@ test_index2_it_add(void *data, Evas_Object *obj, void *event_info)
}
void
-test_index2_it_del(void *data, Evas_Object *obj, void *event_info)
+test_index2_it_del(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Test_Index2_Elements *gui = data;
const char *label, *label_next;
@@ -184,13 +187,13 @@ test_index2_it_del(void *data, Evas_Object *obj, void *event_info)
}
void
-test_index2_id_changed(void *data, Evas_Object *obj, void *event_info)
+test_index2_id_changed(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
elm_list_item_show(event_info);
}
void
-test_index2(void *data, Evas_Object *obj, void *event_info)
+test_index2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *box, *bt;
Test_Index2_Elements *gui;
diff --git a/legacy/elementary/src/bin/test_inwin.c b/legacy/elementary/src/bin/test_inwin.c
index 959057bfee..8a95071361 100644
--- a/legacy/elementary/src/bin/test_inwin.c
+++ b/legacy/elementary/src/bin/test_inwin.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_inwin(void *data, Evas_Object *obj, void *event_info)
+test_inwin(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *inwin, *lb;
@@ -32,7 +35,7 @@ test_inwin(void *data, Evas_Object *obj, void *event_info)
}
void
-test_inwin2(void *data, Evas_Object *obj, void *event_info)
+test_inwin2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *inwin, *lb;
diff --git a/legacy/elementary/src/bin/test_label.c b/legacy/elementary/src/bin/test_label.c
index 633474f633..d26841e142 100644
--- a/legacy/elementary/src/bin/test_label.c
+++ b/legacy/elementary/src/bin/test_label.c
@@ -1,8 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_label(void *data, Evas_Object *obj, void *event_info)
+test_label(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *lb;
diff --git a/legacy/elementary/src/bin/test_launcher.c b/legacy/elementary/src/bin/test_launcher.c
index 6e1cc605fe..eeddab33e3 100644
--- a/legacy/elementary/src/bin/test_launcher.c
+++ b/legacy/elementary/src/bin/test_launcher.c
@@ -1,8 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-mode_cb(void *data, Evas_Object *obj, void *event_info)
+mode_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *mb;
@@ -19,14 +22,14 @@ mode_cb(void *data, Evas_Object *obj, void *event_info)
}
static void
-full_cb(void *data, Evas_Object *obj, void *event_info)
+full_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
elm_win_fullscreen_set(win, !elm_win_fullscreen_get(win));
}
static void
-alpha_cb(void *data, Evas_Object *obj, void *event_info)
+alpha_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *mb;
@@ -40,7 +43,7 @@ alpha_cb(void *data, Evas_Object *obj, void *event_info)
}
static void
-smooth_cb(void *data, Evas_Object *obj, void *event_info)
+smooth_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *mb;
@@ -54,7 +57,7 @@ smooth_cb(void *data, Evas_Object *obj, void *event_info)
}
static void
-close_cb(void *data, Evas_Object *obj, void *event_info)
+close_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_del(data);
}
@@ -80,7 +83,7 @@ tim_cb(void *data)
}
static void
-ic_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+ic_del_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Ecore_Timer *tim;
@@ -93,7 +96,7 @@ ic_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
-ic_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+ic_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Down *ev = event_info;
Ecore_Timer *tim;
@@ -119,7 +122,7 @@ ic_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
-ic_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+ic_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Up *ev = event_info;
Ecore_Timer *tim;
@@ -153,7 +156,7 @@ ic_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
-ic_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+ic_move_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Move *ev = event_info;
if (evas_object_data_get(obj, "dragging"))
@@ -184,7 +187,7 @@ ic_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
void
-test_launcher(void *data, Evas_Object *obj, void *event_info)
+test_launcher(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sc, *tb, *pad, *bt, *ic, *lb, *tb2, *mb, *ck, *bx, *bx2;
int i, j, k, n, m;
@@ -374,7 +377,7 @@ test_launcher(void *data, Evas_Object *obj, void *event_info)
}
void
-test_launcher2(void *data, Evas_Object *obj, void *event_info)
+test_launcher2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sc, *bt, *tb2, *mb, *ck, *bx, *ly;
int k;
@@ -498,7 +501,7 @@ test_launcher2(void *data, Evas_Object *obj, void *event_info)
}
static void
-l3_mode_cb(void *data, Evas_Object *obj, void *event_info)
+l3_mode_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *mb;
@@ -515,14 +518,14 @@ l3_mode_cb(void *data, Evas_Object *obj, void *event_info)
}
static void
-l3_full_cb(void *data, Evas_Object *obj, void *event_info)
+l3_full_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
elm_win_fullscreen_set(win, !elm_win_fullscreen_get(win));
}
static void
-l3_alpha_cb(void *data, Evas_Object *obj, void *event_info)
+l3_alpha_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *mb;
@@ -536,7 +539,7 @@ l3_alpha_cb(void *data, Evas_Object *obj, void *event_info)
}
static void
-l3_smooth_cb(void *data, Evas_Object *obj, void *event_info)
+l3_smooth_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *mb;
@@ -550,7 +553,7 @@ l3_smooth_cb(void *data, Evas_Object *obj, void *event_info)
}
static void
-l3_close_cb(void *data, Evas_Object *obj, void *event_info)
+l3_close_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_del(data);
}
@@ -583,7 +586,7 @@ l3_tim_cb(void *data)
}
static void
-l3_ic_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+l3_ic_del_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Ecore_Timer *tim;
@@ -596,7 +599,7 @@ l3_ic_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
-l3_ic_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+l3_ic_down_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Down *ev = event_info;
Ecore_Timer *tim;
@@ -624,7 +627,7 @@ l3_ic_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
-l3_ic_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+l3_ic_up_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Up *ev = event_info;
Ecore_Timer *tim;
@@ -665,7 +668,7 @@ l3_ic_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
-l3_ic_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+l3_ic_move_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Move *ev = event_info;
Evas_Object *ly2;
@@ -700,7 +703,7 @@ l3_ic_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
void
-test_launcher3(void *data, Evas_Object *obj, void *event_info)
+test_launcher3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sc, *tb, *pad, *bt, *ic, *tb2, *mb, *ck, *bx, *bx2, *ly, *ly2;
int i, j, k, n, m;
diff --git a/legacy/elementary/src/bin/test_layout.c b/legacy/elementary/src/bin/test_layout.c
index b8e5fcd862..1a0a0468dd 100644
--- a/legacy/elementary/src/bin/test_layout.c
+++ b/legacy/elementary/src/bin/test_layout.c
@@ -1,8 +1,11 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
#include <Elementary_Cursor.h>
void
-test_layout(void *data, Evas_Object *obj, void *event_info)
+test_layout(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *ly, *bt;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_list.c b/legacy/elementary/src/bin/test_list.c
index cd23c78b9f..3324ef3d74 100644
--- a/legacy/elementary/src/bin/test_list.c
+++ b/legacy/elementary/src/bin/test_list.c
@@ -1,13 +1,16 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-my_show_it(void *data, Evas_Object *obj, void *event_info)
+my_show_it(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_list_item_show(data);
}
void
-test_list(void *data, Evas_Object *obj, void *event_info)
+test_list(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *li, *ic, *ic2, *bx, *tb2, *bt;
char buf[PATH_MAX];
@@ -148,13 +151,13 @@ test_list(void *data, Evas_Object *obj, void *event_info)
/***********/
static void
-my_li2_clear(void *data, Evas_Object *obj, void *event_info)
+my_li2_clear(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_list_clear(data);
}
static void
-my_li2_sel(void *data, Evas_Object *obj, void *event_info)
+my_li2_sel(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Elm_List_Item *it = elm_list_selected_item_get(obj);
elm_list_item_selected_set(it, 0);
@@ -162,7 +165,7 @@ my_li2_sel(void *data, Evas_Object *obj, void *event_info)
}
void
-test_list2(void *data, Evas_Object *obj, void *event_info)
+test_list2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *li, *ic, *ic2, *bx, *bx2, *bt;
char buf[PATH_MAX];
@@ -275,19 +278,19 @@ test_list2(void *data, Evas_Object *obj, void *event_info)
/***********/
static void
-_bt_clicked(void *data, Evas_Object *obj, void *event_info)
+_bt_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("button was clicked\n");
}
static void
-_it_clicked(void *data, Evas_Object *obj, void *event_info)
+_it_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("item was clicked\n");
}
void
-test_list3(void *data, Evas_Object *obj, void *event_info)
+test_list3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *li, *ic, *ic2, *bx;
char buf[PATH_MAX];
@@ -395,7 +398,7 @@ struct Pginfo {
};
static void
-test_list4_back_cb(void *data, Evas_Object *obj, void *event_info)
+test_list4_back_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
struct Pginfo *info = data;
if (!info) return;
@@ -404,7 +407,7 @@ test_list4_back_cb(void *data, Evas_Object *obj, void *event_info)
}
static void
-test_list4_swipe(void *data, Evas_Object *obj, void *event_info)
+test_list4_swipe(void *data, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *box, *entry, *button;
struct Pginfo *info = data;
@@ -441,7 +444,7 @@ test_list4_swipe(void *data, Evas_Object *obj, void *event_info)
}
void
-test_list4(void *data, Evas_Object *obj, void *event_info)
+test_list4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *li, *ic, *ic2, *pager;
static struct Pginfo info = {NULL, NULL};
@@ -543,13 +546,13 @@ struct list5_data_cb {
};
static void
-test_list5_item_del(void *data, Evas_Object *obj, void *event_info)
+test_list5_item_del(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_list_item_del(data);
}
static void
-test_list5_swipe(void *data, Evas_Object *obj, void *event_info)
+test_list5_swipe(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *button;
struct list5_data_cb *info = elm_list_item_data_get(event_info);
@@ -565,7 +568,7 @@ test_list5_swipe(void *data, Evas_Object *obj, void *event_info)
}
void
-test_list5(void *data, Evas_Object *obj, void *event_info)
+test_list5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *li;
static struct list5_data_cb info;
diff --git a/legacy/elementary/src/bin/test_magnetslider.c b/legacy/elementary/src/bin/test_magnetslider.c
index c106bf26be..bf50e524c9 100644
--- a/legacy/elementary/src/bin/test_magnetslider.c
+++ b/legacy/elementary/src/bin/test_magnetslider.c
@@ -1,14 +1,17 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
-static void _pos_selected_cb(void *data, Evas_Object *obj, void *event_info)
+static void _pos_selected_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info)
{
printf("Selection: %s\n", (char *)event_info);
printf("Label selected: %s\n", elm_magnetslider_selected_label_get(obj));
}
static void
-_position_change_magnetic_cb(void *data, Evas_Object * obj, void *event_info)
+_position_change_magnetic_cb(void *data __UNUSED__, Evas_Object * obj, void *event_info)
{
if (!strcmp((char *)event_info, "left"))
elm_magnetslider_magnet_pos_set(obj, ELM_MAGNETSLIDER_LEFT);
@@ -17,7 +20,7 @@ _position_change_magnetic_cb(void *data, Evas_Object * obj, void *event_info)
}
void
-test_magnetslider(void *data, Evas_Object * obj, void *event_info)
+test_magnetslider(void *data __UNUSED__, Evas_Object * obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ms;
diff --git a/legacy/elementary/src/bin/test_map.c b/legacy/elementary/src/bin/test_map.c
index 4281285eb3..add62fd2a5 100644
--- a/legacy/elementary/src/bin/test_map.c
+++ b/legacy/elementary/src/bin/test_map.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct Marker_Data
@@ -28,112 +31,112 @@ Marker_Data data11= {PACKAGE_DATA_DIR"/images/wood_01.jpg"};
Marker_Data data_parking= {PACKAGE_DATA_DIR"/images/parking.png"};
static void
-my_map_clicked(void *data, Evas_Object *obj, void *event_info)
+my_map_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("clicked\n");
}
static void
-my_map_press(void *data, Evas_Object *obj, void *event_info)
+my_map_press(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("press\n");
}
static void
-my_map_longpressed(void *data, Evas_Object *obj, void *event_info)
+my_map_longpressed(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("longpressed\n");
}
static void
-my_map_clicked_double(void *data, Evas_Object *obj, void *event_info)
+my_map_clicked_double(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("clicked,double\n");
}
static void
-my_map_load(void *data, Evas_Object *obj, void *event_info)
+my_map_load(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("load\n");
}
static void
-my_map_loaded(void *data, Evas_Object *obj, void *event_info)
+my_map_loaded(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("loaded\n");
}
static void
-my_map_load_details(void *data, Evas_Object *obj, void *event_info)
+my_map_load_details(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("load,details\n");
}
static void
-my_map_loaded_details(void *data, Evas_Object *obj, void *event_info)
+my_map_loaded_details(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("loaded,details\n");
}
static void
-my_map_zoom_start(void *data, Evas_Object *obj, void *event_info)
+my_map_zoom_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("zoom,start\n");
}
static void
-my_map_zoom_stop(void *data, Evas_Object *obj, void *event_info)
+my_map_zoom_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("zoom,stop\n");
}
static void
-my_map_zoom_change(void *data, Evas_Object *obj, void *event_info)
+my_map_zoom_change(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("zoom,change\n");
}
static void
-my_map_anim_start(void *data, Evas_Object *obj, void *event_info)
+my_map_anim_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("anim,start\n");
}
static void
-my_map_anim_stop(void *data, Evas_Object *obj, void *event_info)
+my_map_anim_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("anim,stop\n");
}
static void
-my_map_drag_start(void *data, Evas_Object *obj, void *event_info)
+my_map_drag_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("drag,start\n");
}
static void
-my_map_drag_stop(void *data, Evas_Object *obj, void *event_info)
+my_map_drag_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
printf("drag_stop\n");
}
static void
-my_map_scroll(void *data, Evas_Object *obj, void *event_info)
+my_map_scroll(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
//Evas_Object *win = data;
double lon, lat;
@@ -142,7 +145,7 @@ my_map_scroll(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_show_reg(void *data, Evas_Object *obj, void *event_info)
+my_bt_show_reg(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Eina_Bool b = elm_map_paused_get(data);
elm_map_paused_set(data, EINA_TRUE);
@@ -153,13 +156,13 @@ my_bt_show_reg(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_bring_reg(void *data, Evas_Object *obj, void *event_info)
+my_bt_bring_reg(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_geo_region_bring_in(data, 2.352, 48.857);
}
static void
-my_bt_zoom_in(void *data, Evas_Object *obj, void *event_info)
+my_bt_zoom_in(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
double zoom;
@@ -170,7 +173,7 @@ my_bt_zoom_in(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_zoom_out(void *data, Evas_Object *obj, void *event_info)
+my_bt_zoom_out(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
double zoom;
@@ -181,55 +184,55 @@ my_bt_zoom_out(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_pause(void *data, Evas_Object *obj, void *event_info)
+my_bt_pause(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_paused_set(data, !elm_map_paused_get(data));
}
static void
-my_bt_markers_pause(void *data, Evas_Object *obj, void *event_info)
+my_bt_markers_pause(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_paused_markers_set(data, !elm_map_paused_markers_get(data));
}
static void
-my_bt_zoom_fit(void *data, Evas_Object *obj, void *event_info)
+my_bt_zoom_fit(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FIT);
}
static void
-my_bt_zoom_fill(void *data, Evas_Object *obj, void *event_info)
+my_bt_zoom_fill(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FILL);
}
static void
-my_bt_source_mapnik(void *data, Evas_Object *obj, void *event_info)
+my_bt_source_mapnik(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_source_set(data, ELM_MAP_SOURCE_MAPNIK);
}
static void
-my_bt_source_osmarender(void *data, Evas_Object *obj, void *event_info)
+my_bt_source_osmarender(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_source_set(data, ELM_MAP_SOURCE_OSMARENDER);
}
static void
-my_bt_source_cyclemap(void *data, Evas_Object *obj, void *event_info)
+my_bt_source_cyclemap(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_source_set(data, ELM_MAP_SOURCE_CYCLEMAP);
}
static void
-my_bt_source_maplint(void *data, Evas_Object *obj, void *event_info)
+my_bt_source_maplint(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_map_source_set(data, ELM_MAP_SOURCE_MAPLINT);
}
static void
-my_bt_add(void *data, Evas_Object *obj, void *event_info)
+my_bt_add(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
int i;
Elm_Map_Group_Class *g_clas;
@@ -272,7 +275,7 @@ my_bt_add(void *data, Evas_Object *obj, void *event_info)
}
static Evas_Object *
-_marker_get(Evas_Object *obj, Elm_Map_Marker *marker, void *data)
+_marker_get(Evas_Object *obj, Elm_Map_Marker *marker __UNUSED__, void *data)
{
Marker_Data *d = data;
@@ -309,7 +312,7 @@ _marker_get(Evas_Object *obj, Elm_Map_Marker *marker, void *data)
}
static Evas_Object *
-_icon_get(Evas_Object *obj, Elm_Map_Marker *marker, void *data)
+_icon_get(Evas_Object *obj, Elm_Map_Marker *marker __UNUSED__, void *data)
{
Marker_Data *d = data;
@@ -333,7 +336,7 @@ _group_icon_get(Evas_Object *obj, void *data)
}
static void
-_map_mouse_wheel_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_map_mouse_wheel_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *map = data;
Evas_Event_Mouse_Wheel *ev = (Evas_Event_Mouse_Wheel*) event_info;
@@ -353,7 +356,7 @@ _map_mouse_wheel_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
-_map_move_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_map_move_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
int x,y,w,h;
@@ -363,7 +366,7 @@ _map_move_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
void
-test_map(void *data, Evas_Object *obj, void *event_info)
+test_map(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *map, *tb2, *bt, *bx;
diff --git a/legacy/elementary/src/bin/test_menu.c b/legacy/elementary/src/bin/test_menu.c
index e18335359c..9d5ee71033 100644
--- a/legacy/elementary/src/bin/test_menu.c
+++ b/legacy/elementary/src/bin/test_menu.c
@@ -1,11 +1,14 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static Evas_Object *win, *bg, *menu, *rect, *ic;;
static char buf[PATH_MAX];
static void
-_show(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_show(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Event_Mouse_Down *ev = event_info;
elm_menu_move(data, ev->canvas.x, ev->canvas.y);
@@ -134,7 +137,7 @@ _populate_1(Elm_Menu_Item *item)
}
void
-test_menu(void *data, Evas_Object *obj, void *event_info)
+test_menu(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Elm_Menu_Item *item;
diff --git a/legacy/elementary/src/bin/test_multi.c b/legacy/elementary/src/bin/test_multi.c
index b8ab8827dd..e773a608f6 100644
--- a/legacy/elementary/src/bin/test_multi.c
+++ b/legacy/elementary/src/bin/test_multi.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
#define IND_NUM 20
@@ -6,7 +9,7 @@
static Evas_Object *indicator[IND_NUM];
static void
-_mouse_down(void *data, Evas *e, Evas_Object *o, void *event_info)
+_mouse_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
{
Evas_Event_Mouse_Down *ev = event_info;
// Evas_Object *win = data;
@@ -19,7 +22,7 @@ _mouse_down(void *data, Evas *e, Evas_Object *o, void *event_info)
}
static void
-_mouse_up(void *data, Evas *e, Evas_Object *o, void *event_info)
+_mouse_up(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
{
Evas_Event_Mouse_Up *ev = event_info;
// Evas_Object *win = data;
@@ -29,7 +32,7 @@ _mouse_up(void *data, Evas *e, Evas_Object *o, void *event_info)
}
static void
-_mouse_move(void *data, Evas *e, Evas_Object *o, void *event_info)
+_mouse_move(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
{
Evas_Event_Mouse_Move *ev = event_info;
// Evas_Object *win = data;
@@ -42,7 +45,7 @@ _mouse_move(void *data, Evas *e, Evas_Object *o, void *event_info)
static void
-_multi_down(void *data, Evas *e, Evas_Object *o, void *event_info)
+_multi_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
{
Evas_Event_Multi_Down *ev = event_info;
// Evas_Object *win = data;
@@ -54,7 +57,7 @@ _multi_down(void *data, Evas *e, Evas_Object *o, void *event_info)
}
static void
-_multi_up(void *data, Evas *e, Evas_Object *o, void *event_info)
+_multi_up(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
{
Evas_Event_Multi_Up *ev = event_info;
// Evas_Object *win = data;
@@ -64,7 +67,7 @@ _multi_up(void *data, Evas *e, Evas_Object *o, void *event_info)
}
static void
-_multi_move(void *data, Evas *e, Evas_Object *o, void *event_info)
+_multi_move(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
{
Evas_Event_Multi_Move *ev = event_info;
// Evas_Object *win = data;
@@ -78,7 +81,7 @@ _multi_move(void *data, Evas *e, Evas_Object *o, void *event_info)
void
-test_multi(void *data, Evas_Object *obj, void *event_info)
+test_multi(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *r;
int i;
diff --git a/legacy/elementary/src/bin/test_notepad.c b/legacy/elementary/src/bin/test_notepad.c
index 5576b15145..c687d3cd14 100644
--- a/legacy/elementary/src/bin/test_notepad.c
+++ b/legacy/elementary/src/bin/test_notepad.c
@@ -1,25 +1,28 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-my_notepad_bt_1(void *data, Evas_Object *obj, void *event_info)
+my_notepad_bt_1(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *np = data;
}
static void
-my_notepad_bt_2(void *data, Evas_Object *obj, void *event_info)
+my_notepad_bt_2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *np = data;
}
static void
-my_notepad_bt_3(void *data, Evas_Object *obj, void *event_info)
+my_notepad_bt_3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *np = data;
}
void
-test_notepad(void *data, Evas_Object *obj, void *event_info)
+test_notepad(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bx2, *bt, *ic, *np;
diff --git a/legacy/elementary/src/bin/test_notify.c b/legacy/elementary/src/bin/test_notify.c
index 17218934a7..bd107ad319 100644
--- a/legacy/elementary/src/bin/test_notify.c
+++ b/legacy/elementary/src/bin/test_notify.c
@@ -1,41 +1,44 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-_bt(void *data, Evas_Object *obj, void *event_info)
+_bt(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *notify = data;
evas_object_show(notify);
}
static void
-_bt_close(void *data, Evas_Object *obj, void *event_info)
+_bt_close(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *notify = data;
evas_object_hide(notify);
}
static void
-_bt_timer_close(void *data, Evas_Object *obj, void *event_info)
+_bt_timer_close(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *notify = data;
elm_notify_timeout_set(notify, 2.0);
}
static void
-_notify_timeout(void *data, Evas_Object *obj, void *event_info)
+_notify_timeout(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("Notify timed out!\n");
}
static void
-_notify_block(void *data, Evas_Object *obj, void *event_info)
+_notify_block(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("Notify block area clicked!!\n");
}
void
-test_notify(void *data, Evas_Object *obj, void *event_info)
+test_notify(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *tb, *notify, *bt, *lb;
diff --git a/legacy/elementary/src/bin/test_pager.c b/legacy/elementary/src/bin/test_pager.c
index c84781659d..a00ebf95d9 100644
--- a/legacy/elementary/src/bin/test_pager.c
+++ b/legacy/elementary/src/bin/test_pager.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct _Pginfo Pginfo;
@@ -8,35 +11,35 @@ struct _Pginfo
};
static void
-my_pager_1(void *data, Evas_Object *obj, void *event_info)
+my_pager_1(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Pginfo *info = data;
elm_pager_content_promote(info->pager, info->pg2);
}
static void
-my_pager_2(void *data, Evas_Object *obj, void *event_info)
+my_pager_2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Pginfo *info = data;
elm_pager_content_promote(info->pager, info->pg3);
}
static void
-my_pager_3(void *data, Evas_Object *obj, void *event_info)
+my_pager_3(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Pginfo *info = data;
elm_pager_content_promote(info->pager, info->pg1);
}
static void
-my_pager_pop(void *data, Evas_Object *obj, void *event_info)
+my_pager_pop(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Pginfo *info = data;
elm_pager_content_pop(info->pager);
}
void
-test_pager(void *data, Evas_Object *obj, void *event_info)
+test_pager(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *pg, *bx, *lb, *bt;
static Pginfo info;
@@ -152,7 +155,7 @@ test_pager(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_pager_push(void *data, Evas_Object *obj, void *event_info)
+my_pager_push(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Pginfo *info = data;
Evas_Object *bx, *bt, *lb;
@@ -184,7 +187,7 @@ my_pager_push(void *data, Evas_Object *obj, void *event_info)
}
void
-test_pager_slide(void *data, Evas_Object *obj, void *event_info)
+test_pager_slide(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *pg, *bx, *lb, *bt;
static Pginfo info;
diff --git a/legacy/elementary/src/bin/test_panel.c b/legacy/elementary/src/bin/test_panel.c
index 6cb0a581c5..c437db2317 100644
--- a/legacy/elementary/src/bin/test_panel.c
+++ b/legacy/elementary/src/bin/test_panel.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static Elm_Genlist_Item_Class itc;
@@ -13,7 +16,7 @@ static void _fill_list(Evas_Object *obj);
static Eina_Bool _dir_has_subs(const char *path);
static void
-_tstatus(void *data, Evas_Object *obj, void *event_info)
+_tstatus(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
char *status;
@@ -25,7 +28,7 @@ _tstatus(void *data, Evas_Object *obj, void *event_info)
}
static void
-_bstatus(void *data, Evas_Object *obj, void *event_info)
+_bstatus(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
char *status;
@@ -37,7 +40,7 @@ _bstatus(void *data, Evas_Object *obj, void *event_info)
}
static char *
-_label_get(void *data, Evas_Object *obj, const char *source)
+_label_get(void *data, Evas_Object *obj __UNUSED__, const char *source __UNUSED__)
{
return strdup(ecore_file_file_get(data));
}
@@ -62,13 +65,13 @@ _icon_get(void *data, Evas_Object *obj, const char *source)
}
static Eina_Bool
-_state_get(void *data, Evas_Object *obj, const char *source)
+_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *source __UNUSED__)
{
return EINA_FALSE;
}
static void
-_item_del(void *data, Evas_Object *obj)
+_item_del(void *data, Evas_Object *obj __UNUSED__)
{
eina_stringshare_del(data);
}
@@ -139,7 +142,7 @@ _dir_has_subs(const char *path)
}
void
-test_panel(void *data, Evas_Object *obj, void *event_info)
+test_panel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *panel, *bx, *vbx, *toolbar;
Evas_Object *list;
diff --git a/legacy/elementary/src/bin/test_panes.c b/legacy/elementary/src/bin/test_panes.c
index 55d89ba734..b0800d69df 100644
--- a/legacy/elementary/src/bin/test_panes.c
+++ b/legacy/elementary/src/bin/test_panes.c
@@ -1,29 +1,32 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static double size = 0.0;
static void
-_press(void *data, Evas_Object *obj, void *event_info)
+_press(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("press\n");
}
static void
-_unpress(void *data, Evas_Object *obj, void *event_info)
+_unpress(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
printf("unpress, size : %f\n", elm_panes_content_left_size_get(obj));
}
static void
-_clicked(void *data, Evas_Object *obj, void *event_info)
+_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("clicked\n");
}
static void
-_clicked_double(void *data, Evas_Object *obj, void *event_info)
+_clicked_double(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
printf("clicked double\n");
if(elm_panes_content_left_size_get(obj) > 0)
@@ -37,7 +40,7 @@ _clicked_double(void *data, Evas_Object *obj, void *event_info)
void
-test_panes(void *data, Evas_Object *obj, void *event_info)
+test_panes(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *panes, *panes_h, *bt;
diff --git a/legacy/elementary/src/bin/test_photo.c b/legacy/elementary/src/bin/test_photo.c
index fded32ddee..390c97fd9d 100644
--- a/legacy/elementary/src/bin/test_photo.c
+++ b/legacy/elementary/src/bin/test_photo.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void drop_cb(void *mydata, Evas_Object *obj, void *evdata);
@@ -6,7 +9,7 @@ static void drag_stop_cb(void *mydata, Evas_Object *obj, void *evdata);
static void drag_start_cb(void *mydata, Evas_Object *obj, void *evdata);
void
-test_photo(void *data, Evas_Object *obj, void *event_info)
+test_photo(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sc, *tb, *ph;
int i, j, n;
@@ -83,17 +86,17 @@ test_photo(void *data, Evas_Object *obj, void *event_info)
/* Never called, elm_photo never call "drop" smart cb */
static void
-drop_cb(void *mydata, Evas_Object *obj, void *evdata){
+drop_cb(void *mydata __UNUSED__, Evas_Object *obj, void *evdata __UNUSED__){
printf("Drop on obj %p\n", obj);
}
static void
-drag_start_cb(void *mydata, Evas_Object *obj, void *evdata){
+drag_start_cb(void *mydata __UNUSED__, Evas_Object *obj __UNUSED__, void *evdata __UNUSED__){
}
static void
-drag_stop_cb(void *mydata, Evas_Object *obj, void *evdata){
+drag_stop_cb(void *mydata __UNUSED__, Evas_Object *obj __UNUSED__, void *evdata __UNUSED__){
}
diff --git a/legacy/elementary/src/bin/test_photocam.c b/legacy/elementary/src/bin/test_photocam.c
index 6b12b475c9..ea53b6e3d1 100644
--- a/legacy/elementary/src/bin/test_photocam.c
+++ b/legacy/elementary/src/bin/test_photocam.c
@@ -1,115 +1,118 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static Evas_Object *rect;
static void
-my_ph_clicked(void *data, Evas_Object *obj, void *event_info)
+my_ph_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("clicked\n");
}
static void
-my_ph_press(void *data, Evas_Object *obj, void *event_info)
+my_ph_press(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("press\n");
}
static void
-my_ph_longpressed(void *data, Evas_Object *obj, void *event_info)
+my_ph_longpressed(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("longpressed\n");
}
static void
-my_ph_clicked_double(void *data, Evas_Object *obj, void *event_info)
+my_ph_clicked_double(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("clicked,double\n");
}
static void
-my_ph_load(void *data, Evas_Object *obj, void *event_info)
+my_ph_load(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("load\n");
}
static void
-my_ph_loaded(void *data, Evas_Object *obj, void *event_info)
+my_ph_loaded(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("loaded\n");
}
static void
-my_ph_load_details(void *data, Evas_Object *obj, void *event_info)
+my_ph_load_details(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("load,details\n");
}
static void
-my_ph_loaded_details(void *data, Evas_Object *obj, void *event_info)
+my_ph_loaded_details(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("loaded,details\n");
}
static void
-my_ph_zoom_start(void *data, Evas_Object *obj, void *event_info)
+my_ph_zoom_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("zoom,start\n");
}
static void
-my_ph_zoom_stop(void *data, Evas_Object *obj, void *event_info)
+my_ph_zoom_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("zoom,stop\n");
}
static void
-my_ph_zoom_change(void *data, Evas_Object *obj, void *event_info)
+my_ph_zoom_change(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("zoom,change\n");
}
static void
-my_ph_anim_start(void *data, Evas_Object *obj, void *event_info)
+my_ph_anim_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("anim,start\n");
}
static void
-my_ph_anim_stop(void *data, Evas_Object *obj, void *event_info)
+my_ph_anim_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("anim,stop\n");
}
static void
-my_ph_drag_start(void *data, Evas_Object *obj, void *event_info)
+my_ph_drag_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("drag,start\n");
}
static void
-my_ph_drag_stop(void *data, Evas_Object *obj, void *event_info)
+my_ph_drag_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
printf("drag_stop\n");
}
static void
-my_ph_scroll(void *data, Evas_Object *obj, void *event_info)
+my_ph_scroll(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
int x, y, w, h;
@@ -118,7 +121,7 @@ my_ph_scroll(void *data, Evas_Object *obj, void *event_info)
}
static void
-sel_done(void *data, Evas_Object *obj, void *event_info)
+sel_done(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *ph, *iw;
@@ -129,7 +132,7 @@ sel_done(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_open(void *data, Evas_Object *obj, void *event_info)
+my_bt_open(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *ph, *win;
Evas_Object *iw, *fs;
@@ -151,20 +154,20 @@ my_bt_open(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_show_reg(void *data, Evas_Object *obj, void *event_info)
+my_bt_show_reg(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_photocam_image_region_show(data, 30, 50, 500, 300);
}
static void
-my_bt_bring_reg(void *data, Evas_Object *obj, void *event_info)
+my_bt_bring_reg(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_photocam_image_region_bring_in(data, 800, 300, 500, 300);
}
static void
-my_bt_zoom_in(void *data, Evas_Object *obj, void *event_info)
+my_bt_zoom_in(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
double zoom;
@@ -175,7 +178,7 @@ my_bt_zoom_in(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_zoom_out(void *data, Evas_Object *obj, void *event_info)
+my_bt_zoom_out(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
double zoom;
@@ -186,25 +189,25 @@ my_bt_zoom_out(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_pause(void *data, Evas_Object *obj, void *event_info)
+my_bt_pause(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_photocam_paused_set(data, !elm_photocam_paused_get(data));
}
static void
-my_bt_zoom_fit(void *data, Evas_Object *obj, void *event_info)
+my_bt_zoom_fit(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_photocam_zoom_mode_set(data, ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT);
}
static void
-my_bt_zoom_fill(void *data, Evas_Object *obj, void *event_info)
+my_bt_zoom_fill(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_photocam_zoom_mode_set(data, ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL);
}
static void
-_photocam_mouse_wheel_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_photocam_mouse_wheel_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *photocam = data;
Evas_Event_Mouse_Wheel *ev = (Evas_Event_Mouse_Wheel*) event_info;
@@ -234,7 +237,7 @@ _photocam_mouse_wheel_cb(void *data, Evas *e, Evas_Object *obj, void *event_info
}
static void
-_photocam_move_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_photocam_move_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
int x,y,w,h;
@@ -244,7 +247,7 @@ _photocam_move_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info
}
void
-test_photocam(void *data, Evas_Object *obj, void *event_info)
+test_photocam(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *ph, *tb2, *bt;
// these were just testing - use the "select photo" browser to select one
diff --git a/legacy/elementary/src/bin/test_progressbar.c b/legacy/elementary/src/bin/test_progressbar.c
index c70588b2e6..198b63ca7e 100644
--- a/legacy/elementary/src/bin/test_progressbar.c
+++ b/legacy/elementary/src/bin/test_progressbar.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct Progressbar
{
@@ -16,7 +19,7 @@ typedef struct Progressbar
static Progressbar _test_progressbar;
static Eina_Bool
-_my_progressbar_value_set (void *data)
+_my_progressbar_value_set (void *data __UNUSED__)
{
double progress;
@@ -33,7 +36,7 @@ _my_progressbar_value_set (void *data)
}
static void
-my_progressbar_test_start(void *data, Evas_Object *obj, void *event_info)
+my_progressbar_test_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_progressbar_pulse(_test_progressbar.pb2, EINA_TRUE);
elm_progressbar_pulse(_test_progressbar.pb5, EINA_TRUE);
@@ -46,7 +49,7 @@ my_progressbar_test_start(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_progressbar_test_stop(void *data, Evas_Object *obj, void *event_info)
+my_progressbar_test_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_progressbar_pulse(_test_progressbar.pb2, EINA_FALSE);
elm_progressbar_pulse(_test_progressbar.pb5, EINA_FALSE);
@@ -59,14 +62,14 @@ my_progressbar_test_stop(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_progressbar_destroy(void *data, Evas_Object *obj, void *event_info)
+my_progressbar_destroy(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
my_progressbar_test_stop(NULL, NULL, NULL);
evas_object_del(obj);
}
void
-test_progressbar(void *data, Evas_Object *obj, void *event_info)
+test_progressbar(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *pb, *bx, *hbx, *bt, *bt_bx, *ic1, *ic2;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_radio.c b/legacy/elementary/src/bin/test_radio.c
index 701693a4dc..6ee75ac7c5 100644
--- a/legacy/elementary/src/bin/test_radio.c
+++ b/legacy/elementary/src/bin/test_radio.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_radio(void *data, Evas_Object *obj, void *event_info)
+test_radio(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ic, *rd, *rdg;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_scaling.c b/legacy/elementary/src/bin/test_scaling.c
index 876368c295..aa396a7841 100644
--- a/legacy/elementary/src/bin/test_scaling.c
+++ b/legacy/elementary/src/bin/test_scaling.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_scaling(void *data, Evas_Object *obj, void *event_info)
+test_scaling(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *bt;
@@ -60,7 +63,7 @@ test_scaling(void *data, Evas_Object *obj, void *event_info)
}
void
-test_scaling2(void *data, Evas_Object *obj, void *event_info)
+test_scaling2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *fr, *lb;
diff --git a/legacy/elementary/src/bin/test_scroller.c b/legacy/elementary/src/bin/test_scroller.c
index 210e90fe6c..7ad1d1952d 100644
--- a/legacy/elementary/src/bin/test_scroller.c
+++ b/legacy/elementary/src/bin/test_scroller.c
@@ -1,31 +1,34 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-my_bt_go_300_300(void *data, Evas_Object *obj, void *event_info)
+my_bt_go_300_300(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_scroller_region_bring_in((Evas_Object *)data, 300, 300, 318, 318);
}
void
-my_bt_go_900_300(void *data, Evas_Object *obj, void *event_info)
+my_bt_go_900_300(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_scroller_region_bring_in((Evas_Object *)data, 900, 300, 318, 318);
}
void
-my_bt_go_300_900(void *data, Evas_Object *obj, void *event_info)
+my_bt_go_300_900(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_scroller_region_bring_in((Evas_Object *)data, 300, 900, 318, 318);
}
void
-my_bt_go_900_900(void *data, Evas_Object *obj, void *event_info)
+my_bt_go_900_900(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_scroller_region_bring_in((Evas_Object *)data, 900, 900, 318, 318);
}
void
-test_scroller(void *data, Evas_Object *obj, void *event_info)
+test_scroller(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg2, *tb, *tb2, *bg, *sc, *bt;
int i, j, n;
@@ -128,13 +131,13 @@ test_scroller(void *data, Evas_Object *obj, void *event_info)
}
void
-click_through(void *data, Evas_Object *obj, void *event_info)
+click_through(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
printf("click went through on %p\n", obj);
}
void
-test_scroller2(void *data, Evas_Object *obj, void *event_info)
+test_scroller2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bt, *bx, *bx2, *bg, *sc, *tb, *tb2, *rc;
int i, j;
diff --git a/legacy/elementary/src/bin/test_separator.c b/legacy/elementary/src/bin/test_separator.c
index 4371058419..4a5f0e90c1 100644
--- a/legacy/elementary/src/bin/test_separator.c
+++ b/legacy/elementary/src/bin/test_separator.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_separator(void *data, Evas_Object *obj, void *event_info)
+test_separator(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx0, *bx, *bt, *sp;
diff --git a/legacy/elementary/src/bin/test_slider.c b/legacy/elementary/src/bin/test_slider.c
index a4f615217c..d1b51cf342 100644
--- a/legacy/elementary/src/bin/test_slider.c
+++ b/legacy/elementary/src/bin/test_slider.c
@@ -1,16 +1,18 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
-
void
-_change_cb(void *data, Evas_Object *obj, void *event_info)
+_change_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
double val = elm_slider_value_get(obj);
elm_slider_value_set(data, val);
}
void
-test_slider(void *data, Evas_Object *obj, void *event_info)
+test_slider(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *sl, *ic, *sl1;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_slideshow.c b/legacy/elementary/src/bin/test_slideshow.c
index b3e54b8075..5cba80229b 100644
--- a/legacy/elementary/src/bin/test_slideshow.c
+++ b/legacy/elementary/src/bin/test_slideshow.c
@@ -1,4 +1,5 @@
#include <Elementary.h>
+#include <elementary_config.h>
#ifndef ELM_LIB_QUICKLAUNCH
static Evas_Object *slideshow, *bt_start, *bt_stop;
@@ -14,25 +15,25 @@ static char *img8 = PACKAGE_DATA_DIR"/images/mystrale.jpg";
static char *img9 = PACKAGE_DATA_DIR"/images/mystrale_2.jpg";
static void
-_notify_show(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_notify_show(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_show(data);
}
static void
-_next(void *data, Evas_Object *obj, void *event_info)
+_next(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_slideshow_next(data);
}
static void
-_previous(void *data, Evas_Object *obj, void *event_info)
+_previous(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_slideshow_previous(data);
}
static void
-_mouse_in(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_mouse_in(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_notify_timeout_set(data, 0);
evas_object_show(data);
@@ -40,27 +41,27 @@ _mouse_in(void *data, Evas *e, Evas_Object *obj, void *event_info)
static void
-_mouse_out(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_mouse_out(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_notify_timeout_set(data, 3);
}
static void
-_hv_select(void *data, Evas_Object *obj, void *event_info)
+_hv_select(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
elm_slideshow_transition_set(slideshow, data);
elm_hoversel_label_set(obj, data);
}
static void
-_layout_select(void *data, Evas_Object *obj, void *event_info)
+_layout_select(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
elm_slideshow_layout_set(slideshow, data);
elm_hoversel_label_set(obj, data);
}
static void
-_start(void *data, Evas_Object *obj, void *event_info)
+_start(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_slideshow_timeout_set(slideshow, (int)elm_spinner_value_get(data));
@@ -69,7 +70,7 @@ _start(void *data, Evas_Object *obj, void *event_info)
}
static void
-_stop(void *data, Evas_Object *obj, void *event_info)
+_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_slideshow_timeout_set(slideshow, 0);
elm_object_disabled_set(bt_start, 0);
@@ -77,7 +78,7 @@ _stop(void *data, Evas_Object *obj, void *event_info)
}
static void
-_spin(void *data, Evas_Object *obj, void *event_info)
+_spin(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
if (elm_slideshow_timeout_get(slideshow) > 0)
elm_slideshow_timeout_set(slideshow, (int)elm_spinner_value_get(data));
@@ -101,7 +102,7 @@ _get(void *data, Evas_Object *obj)
void
-test_slideshow(void *data, Evas_Object *obj, void *event_info)
+test_slideshow(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *notify, *bx, *bt, *hv, *spin;
const Eina_List *l;
diff --git a/legacy/elementary/src/bin/test_spinner.c b/legacy/elementary/src/bin/test_spinner.c
index d57a8ed400..39027edd90 100644
--- a/legacy/elementary/src/bin/test_spinner.c
+++ b/legacy/elementary/src/bin/test_spinner.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_spinner(void *data, Evas_Object *obj, void *event_info)
+test_spinner(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *sp;
diff --git a/legacy/elementary/src/bin/test_table.c b/legacy/elementary/src/bin/test_table.c
index 8ec607b030..dd0bb99fe6 100644
--- a/legacy/elementary/src/bin/test_table.c
+++ b/legacy/elementary/src/bin/test_table.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_table(void *data, Evas_Object *obj, void *event_info)
+test_table(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *tb, *bt;
diff --git a/legacy/elementary/src/bin/test_thumb.c b/legacy/elementary/src/bin/test_thumb.c
index 4bb9066d1e..b6f2f9de39 100644
--- a/legacy/elementary/src/bin/test_thumb.c
+++ b/legacy/elementary/src/bin/test_thumb.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_thumb(void *data, Evas_Object *obj, void *event_info)
+test_thumb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sc, *tb, *th;
int i, j, n;
diff --git a/legacy/elementary/src/bin/test_toggle.c b/legacy/elementary/src/bin/test_toggle.c
index 5c914c401a..e8046f18fa 100644
--- a/legacy/elementary/src/bin/test_toggle.c
+++ b/legacy/elementary/src/bin/test_toggle.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
-test_toggle(void *data, Evas_Object *obj, void *event_info)
+test_toggle(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ic, *tg;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/bin/test_toolbar.c b/legacy/elementary/src/bin/test_toolbar.c
index e95404c6dd..6906410fdc 100644
--- a/legacy/elementary/src/bin/test_toolbar.c
+++ b/legacy/elementary/src/bin/test_toolbar.c
@@ -1,7 +1,10 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
static void
-tb_1(void *data, Evas_Object *obj, void *event_info)
+tb_1(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/panel_01.jpg", PACKAGE_DATA_DIR);
@@ -9,7 +12,7 @@ tb_1(void *data, Evas_Object *obj, void *event_info)
}
static void
-tb_2(void *data, Evas_Object *obj, void *event_info)
+tb_2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/rock_01.jpg", PACKAGE_DATA_DIR);
@@ -17,7 +20,7 @@ tb_2(void *data, Evas_Object *obj, void *event_info)
}
static void
-tb_3(void *data, Evas_Object *obj, void *event_info)
+tb_3(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/wood_01.jpg", PACKAGE_DATA_DIR);
@@ -25,7 +28,7 @@ tb_3(void *data, Evas_Object *obj, void *event_info)
}
static void
-tb_4(void *data, Evas_Object *obj, void *event_info)
+tb_4(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/sky_03.jpg", PACKAGE_DATA_DIR);
@@ -33,13 +36,13 @@ tb_4(void *data, Evas_Object *obj, void *event_info)
}
static void
-tb_5(void *data, Evas_Object *obj, void *event_info)
+tb_5(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_photo_file_set(data, NULL);
}
void
-test_toolbar(void *data, Evas_Object *obj, void *event_info)
+test_toolbar(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *bx, *tb, *ic, *ph, *menu;
Evas_Object *ph1, *ph2, *ph3, *ph4;
diff --git a/legacy/elementary/src/bin/test_tooltip.c b/legacy/elementary/src/bin/test_tooltip.c
index e87ebb2e1b..b2d2abd66c 100644
--- a/legacy/elementary/src/bin/test_tooltip.c
+++ b/legacy/elementary/src/bin/test_tooltip.c
@@ -15,7 +15,7 @@ typedef struct _Testitem
static Elm_Gengrid_Item_Class gic;
char *
-grdt_lbl_get(void *data, Evas_Object *obj, const char *part)
+grdt_lbl_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
const Testitem *ti = data;
char buf[256];
@@ -39,7 +39,7 @@ grdt_icon_get(void *data, Evas_Object *obj, const char *part)
}
void
-test_gengrid_tooltip(void *data, Evas_Object *obj, void *event_info)
+test_gengrid_tooltip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *grid;
static Testitem ti[144];
@@ -103,7 +103,7 @@ test_gengrid_tooltip(void *data, Evas_Object *obj, void *event_info)
static Elm_Genlist_Item_Class itct;
static void
-gltt_exp(void *data, Evas_Object *obj, void *event_info)
+gltt_exp(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
Evas_Object *gl = elm_genlist_item_genlist_get(it);
@@ -120,28 +120,28 @@ gltt_exp(void *data, Evas_Object *obj, void *event_info)
elm_genlist_item_tooltip_text_set(it3, "Testing C");
}
static void
-gltt_con(void *data, Evas_Object *obj, void *event_info)
+gltt_con(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
elm_genlist_item_subitems_clear(it);
}
static void
-gltt_exp_req(void *data, Evas_Object *obj, void *event_info)
+gltt_exp_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
-gltt_con_req(void *data, Evas_Object *obj, void *event_info)
+gltt_con_req(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Elm_Genlist_Item *it = event_info;
elm_genlist_item_expanded_set(it, 0);
}
char *
-gltt_label_get(void *data, Evas_Object *obj, const char *part)
+gltt_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
snprintf(buf, sizeof(buf), "Item mode %i", (int)(long)data);
diff --git a/legacy/elementary/src/bin/test_weather.c b/legacy/elementary/src/bin/test_weather.c
index f4806298e0..857bc6dd38 100644
--- a/legacy/elementary/src/bin/test_weather.c
+++ b/legacy/elementary/src/bin/test_weather.c
@@ -1,5 +1,7 @@
#include <Elementary.h>
-#include "../../elementary_config.h"
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
#ifdef HAVE_ELEMENTARY_EWEATHER
@@ -51,7 +53,7 @@ _hover_select_cb(void *data, Evas_Object *obj, void *event_info)
#endif
void
-test_weather(void *data, Evas_Object *obj, void *event_info)
+test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg;
#ifdef HAVE_ELEMENTARY_EWEATHER
diff --git a/legacy/elementary/src/bin/test_win_state.c b/legacy/elementary/src/bin/test_win_state.c
index a1b6649007..d6efacbf0d 100644
--- a/legacy/elementary/src/bin/test_win_state.c
+++ b/legacy/elementary/src/bin/test_win_state.c
@@ -1,4 +1,7 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct _Testitem
{
@@ -9,7 +12,7 @@ typedef struct _Testitem
static int rotate_with_resize = 0;
static void
-my_bt_38_alpha_on(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_alpha_on(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *bg = evas_object_data_get(win, "bg");
@@ -18,7 +21,7 @@ my_bt_38_alpha_on(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_38_alpha_off(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_alpha_off(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *bg = evas_object_data_get(win, "bg");
@@ -27,14 +30,14 @@ my_bt_38_alpha_off(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_ck_38_resize(void *data, Evas_Object *obj, void *event_info)
+my_ck_38_resize(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
rotate_with_resize = elm_check_state_get(obj);
}
static void
-my_bt_38_rot_0(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_rot_0(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
if (rotate_with_resize)
@@ -44,7 +47,7 @@ my_bt_38_rot_0(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_38_rot_90(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_rot_90(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
if (rotate_with_resize)
@@ -54,7 +57,7 @@ my_bt_38_rot_90(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_38_rot_180(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_rot_180(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
if (rotate_with_resize)
@@ -64,7 +67,7 @@ my_bt_38_rot_180(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_bt_38_rot_270(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_rot_270(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
if (rotate_with_resize)
@@ -74,7 +77,7 @@ my_bt_38_rot_270(void *data, Evas_Object *obj, void *event_info)
}
static void
-my_win_move(void *data, Evas_Object *obj, void *event_info)
+my_win_move(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Coord x, y;
elm_win_screen_position_get(obj, &x, &y);
@@ -82,7 +85,7 @@ my_win_move(void *data, Evas_Object *obj, void *event_info)
}
static void
-_win_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_win_resize(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Coord w, h;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
@@ -90,25 +93,25 @@ _win_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
}
static void
-_win_foc_in(void *data, Evas *e, void *event_info)
+_win_foc_in(void *data __UNUSED__, Evas *e __UNUSED__, void *event_info __UNUSED__)
{
printf("FOC IN\n");
}
static void
-_win_foc_out(void *data, Evas *e, void *event_info)
+_win_foc_out(void *data __UNUSED__, Evas *e __UNUSED__, void *event_info __UNUSED__)
{
printf("FOC OUT\n");
}
static void
-_close_win(void *data, Evas_Object *obj, void *event_info)
+_close_win(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_del(data);
}
void
-test_win_state(void *data, Evas_Object *obj, void *event_info)
+test_win_state(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sl, *bx, *bx2, *bt, *ck;
@@ -232,7 +235,7 @@ test_win_state(void *data, Evas_Object *obj, void *event_info)
}
void
-test_win_state2(void *data, Evas_Object *obj, void *event_info)
+test_win_state2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sl, *bx, *bx2, *bt, *ck;
char buf[PATH_MAX];
diff --git a/legacy/elementary/src/modules/test_entry/mod.c b/legacy/elementary/src/modules/test_entry/mod.c
index acf2990fae..0b978e6ad6 100644
--- a/legacy/elementary/src/modules/test_entry/mod.c
+++ b/legacy/elementary/src/modules/test_entry/mod.c
@@ -1,14 +1,17 @@
#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
// module api funcs needed
EAPI int
-elm_modapi_init(void *m)
+elm_modapi_init(void *m __UNUSED__)
{
return 1; // succeed always
}
EAPI int
-elm_modapi_shutdown(void *m)
+elm_modapi_shutdown(void *m __UNUSED__)
{
return 1; // succeed always
}