diff --git a/legacy/elementary/src/examples/box_example_02.c b/legacy/elementary/src/examples/box_example_02.c index 3e4b3d1b98..16ac525905 100644 --- a/legacy/elementary/src/examples/box_example_02.c +++ b/legacy/elementary/src/examples/box_example_02.c @@ -1,3 +1,6 @@ +//Compile with: +//gcc -g `pkg-config --cflags --libs elementary` box_example_02.c -o box_example_02 + #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" diff --git a/legacy/elementary/src/examples/bubble_example_01.c b/legacy/elementary/src/examples/bubble_example_01.c index 3061b6c77a..21db797d9f 100644 --- a/legacy/elementary/src/examples/bubble_example_01.c +++ b/legacy/elementary/src/examples/bubble_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif void diff --git a/legacy/elementary/src/examples/check_example_01.c b/legacy/elementary/src/examples/check_example_01.c index 84e5923fc3..a23219323f 100644 --- a/legacy/elementary/src/examples/check_example_01.c +++ b/legacy/elementary/src/examples/check_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static void _print(void *data, Evas_Object *obj, void *event_info); diff --git a/legacy/elementary/src/examples/colorselector_example_01.c b/legacy/elementary/src/examples/colorselector_example_01.c index 1b97dc772c..a9225b78eb 100644 --- a/legacy/elementary/src/examples/colorselector_example_01.c +++ b/legacy/elementary/src/examples/colorselector_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static void _change_color(void *data, Evas_Object *obj, void *event_info); diff --git a/legacy/elementary/src/examples/efl_thread_1.c b/legacy/elementary/src/examples/efl_thread_1.c index baa67aeb46..5edf777cba 100644 --- a/legacy/elementary/src/examples/efl_thread_1.c +++ b/legacy/elementary/src/examples/efl_thread_1.c @@ -2,6 +2,11 @@ //gcc -o efl_thread_1 efl_thread_1.c -g `pkg-config --cflags --libs elementary` #include #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_2.c b/legacy/elementary/src/examples/efl_thread_2.c index a7c7493a07..4b736d7467 100644 --- a/legacy/elementary/src/examples/efl_thread_2.c +++ b/legacy/elementary/src/examples/efl_thread_2.c @@ -2,6 +2,11 @@ //gcc -o efl_thread_2 efl_thread_2.c -g `pkg-config --cflags --libs elementary` #include #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_3.c b/legacy/elementary/src/examples/efl_thread_3.c index cdaa2adf63..ae807a64fa 100644 --- a/legacy/elementary/src/examples/efl_thread_3.c +++ b/legacy/elementary/src/examples/efl_thread_3.c @@ -2,6 +2,11 @@ //gcc -o efl_thread_3 efl_thread_3.c -g `pkg-config --cflags --libs elementary` #include #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_4.c b/legacy/elementary/src/examples/efl_thread_4.c index eca9c4c40e..0c67f7237d 100644 --- a/legacy/elementary/src/examples/efl_thread_4.c +++ b/legacy/elementary/src/examples/efl_thread_4.c @@ -2,6 +2,11 @@ //gcc -o efl_thread_4 efl_thread_4.c -g `pkg-config --cflags --libs elementary` #include #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_5.c b/legacy/elementary/src/examples/efl_thread_5.c index 8e64dd237b..4af200fcab 100644 --- a/legacy/elementary/src/examples/efl_thread_5.c +++ b/legacy/elementary/src/examples/efl_thread_5.c @@ -1,6 +1,11 @@ //Compile with: //gcc -o efl_thread_5 efl_thread_5.c -g `pkg-config --cflags --libs elementary` #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Ecore_Thread *th = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_6.c b/legacy/elementary/src/examples/efl_thread_6.c index 6f40862049..c995739da8 100644 --- a/legacy/elementary/src/examples/efl_thread_6.c +++ b/legacy/elementary/src/examples/efl_thread_6.c @@ -1,6 +1,11 @@ //Compile with: //gcc -o efl_thread_6 efl_thread_6.c -g `pkg-config --cflags --libs elementary` #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_win32_1.c b/legacy/elementary/src/examples/efl_thread_win32_1.c index 75d8465b81..7cdf995df1 100644 --- a/legacy/elementary/src/examples/efl_thread_win32_1.c +++ b/legacy/elementary/src/examples/efl_thread_win32_1.c @@ -3,6 +3,11 @@ #include #define WIN32_LEAN_AND_MEAN #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_win32_2.c b/legacy/elementary/src/examples/efl_thread_win32_2.c index a84c242a15..101bfb462e 100644 --- a/legacy/elementary/src/examples/efl_thread_win32_2.c +++ b/legacy/elementary/src/examples/efl_thread_win32_2.c @@ -3,6 +3,11 @@ #include #define WIN32_LEAN_AND_MEAN #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_win32_3.c b/legacy/elementary/src/examples/efl_thread_win32_3.c index bda24050dc..eff6fce15f 100644 --- a/legacy/elementary/src/examples/efl_thread_win32_3.c +++ b/legacy/elementary/src/examples/efl_thread_win32_3.c @@ -3,6 +3,11 @@ #include #define WIN32_LEAN_AND_MEAN #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/efl_thread_win32_4.c b/legacy/elementary/src/examples/efl_thread_win32_4.c index 4b1171be2f..f882d80a0e 100644 --- a/legacy/elementary/src/examples/efl_thread_win32_4.c +++ b/legacy/elementary/src/examples/efl_thread_win32_4.c @@ -3,6 +3,11 @@ #include #define WIN32_LEAN_AND_MEAN #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif static Evas_Object *win = NULL; static Evas_Object *rect = NULL; diff --git a/legacy/elementary/src/examples/flip_example_01.c b/legacy/elementary/src/examples/flip_example_01.c index dcce7146bb..95e84e2535 100644 --- a/legacy/elementary/src/examples/flip_example_01.c +++ b/legacy/elementary/src/examples/flip_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static void _change_interaction(void *data, Evas_Object *obj, void *event_info); diff --git a/legacy/elementary/src/examples/glview_example_01.c b/legacy/elementary/src/examples/glview_example_01.c index 107c1b7bf1..3e06a51559 100644 --- a/legacy/elementary/src/examples/glview_example_01.c +++ b/legacy/elementary/src/examples/glview_example_01.c @@ -11,6 +11,11 @@ #include #include #include +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#else +# define __UNUSED__ +#endif typedef struct _GLData GLData; diff --git a/legacy/elementary/src/examples/hover_example_01.c b/legacy/elementary/src/examples/hover_example_01.c index 3a337cb9ac..7e0471892a 100644 --- a/legacy/elementary/src/examples/hover_example_01.c +++ b/legacy/elementary/src/examples/hover_example_01.c @@ -4,10 +4,12 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static void -_show_hover(void *data, Evas_Object *obj, void *event_info) +_show_hover(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { evas_object_show(data); } diff --git a/legacy/elementary/src/examples/hoversel_example_01.c b/legacy/elementary/src/examples/hoversel_example_01.c index 10cda69864..d2903293e9 100644 --- a/legacy/elementary/src/examples/hoversel_example_01.c +++ b/legacy/elementary/src/examples/hoversel_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static void _print_items(void *data, Evas_Object *obj, void *event_info); diff --git a/legacy/elementary/src/examples/label_example_01.c b/legacy/elementary/src/examples/label_example_01.c index b9e26a654c..30f76ebd5e 100644 --- a/legacy/elementary/src/examples/label_example_01.c +++ b/legacy/elementary/src/examples/label_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif EAPI_MAIN int diff --git a/legacy/elementary/src/examples/menu_example_01.c b/legacy/elementary/src/examples/menu_example_01.c index 5b33d47cd8..480d9a4e36 100644 --- a/legacy/elementary/src/examples/menu_example_01.c +++ b/legacy/elementary/src/examples/menu_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static void diff --git a/legacy/elementary/src/examples/notify_example_01.c b/legacy/elementary/src/examples/notify_example_01.c index 33c4b788b0..855298e99b 100644 --- a/legacy/elementary/src/examples/notify_example_01.c +++ b/legacy/elementary/src/examples/notify_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static void _hide(void *data, Evas_Object *obj, void *event_info); diff --git a/legacy/elementary/src/examples/panel_example_01.c b/legacy/elementary/src/examples/panel_example_01.c index 8e848bfb52..13649d7d8a 100644 --- a/legacy/elementary/src/examples/panel_example_01.c +++ b/legacy/elementary/src/examples/panel_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif EAPI_MAIN int diff --git a/legacy/elementary/src/examples/photocam_example_01.c b/legacy/elementary/src/examples/photocam_example_01.c index 4a5eba8428..b4270b1eed 100644 --- a/legacy/elementary/src/examples/photocam_example_01.c +++ b/legacy/elementary/src/examples/photocam_example_01.c @@ -5,6 +5,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static void _fit(void *data, Evas_Object *obj, void *event_info); diff --git a/legacy/elementary/src/examples/radio_example_01.c b/legacy/elementary/src/examples/radio_example_01.c index ec5741bd7f..61e9f29dee 100644 --- a/legacy/elementary/src/examples/radio_example_01.c +++ b/legacy/elementary/src/examples/radio_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static int val = 1; diff --git a/legacy/elementary/src/examples/scroller_example_01.c b/legacy/elementary/src/examples/scroller_example_01.c index 3f31efeb50..482e42ee6c 100644 --- a/legacy/elementary/src/examples/scroller_example_01.c +++ b/legacy/elementary/src/examples/scroller_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif static const char *text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse bibendum, nibh eget vehicula tempus, libero dui aliquam dui, eget pellentesque nulla est id mi. Sed orci nisl, mattis vitae dignissim scelerisque, imperdiet vel arcu. Integer ut libero id massa commodo dignissim sed at orci. Quisque sollicitudin eleifend malesuada. Donec orci orci, mollis quis euismod vel, tincidunt nec ipsum. Sed ut nulla ligula, ut commodo tellus. Duis non felis in odio fringilla venenatis eget in metus. Mauris molestie ipsum tortor. Suspendisse potenti. Curabitur facilisis ultricies cursus. In euismod viverra risus sit amet pharetra. Sed mauris lorem, volutpat a vehicula quis, interdum nec erat. Suspendisse auctor bibendum fringilla. Curabitur tincidunt sem risus.\ diff --git a/legacy/elementary/src/examples/separator_example_01.c b/legacy/elementary/src/examples/separator_example_01.c index fbfc6f25d8..ab0afa8bd0 100644 --- a/legacy/elementary/src/examples/separator_example_01.c +++ b/legacy/elementary/src/examples/separator_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif EAPI_MAIN int diff --git a/legacy/elementary/src/examples/table_example_01.c b/legacy/elementary/src/examples/table_example_01.c index 754b5a9bf3..35d8eca9b4 100644 --- a/legacy/elementary/src/examples/table_example_01.c +++ b/legacy/elementary/src/examples/table_example_01.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif EAPI_MAIN int diff --git a/legacy/elementary/src/examples/table_example_02.c b/legacy/elementary/src/examples/table_example_02.c index 3845aca0d9..0d42c340fe 100644 --- a/legacy/elementary/src/examples/table_example_02.c +++ b/legacy/elementary/src/examples/table_example_02.c @@ -4,6 +4,8 @@ #include #ifdef HAVE_CONFIG_H # include "elementary_config.h" +#else +# define __UNUSED__ #endif EAPI_MAIN int