summaryrefslogtreecommitdiff
path: root/src/examples/dayselector_example.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 08:42:20 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 08:42:20 +0000
commitf84b3cda618180232412b72ad849a5d23b80dbcd (patch)
treeaeab1f71b33113d0a58cfb2f723f2699445e9408 /src/examples/dayselector_example.c
parentd420f31b9c07d7529117519eda05471a95ea455f (diff)
elm examples: I removed __UNUSED__ and config header inclusion. This code is an example for other developers so we don't need that extra macros. But how can I ignore this warning while building elementary?
SVN revision: 69698
Diffstat (limited to 'src/examples/dayselector_example.c')
-rw-r--r--src/examples/dayselector_example.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/examples/dayselector_example.c b/src/examples/dayselector_example.c
index 265f9a6..cd08ad5 100644
--- a/src/examples/dayselector_example.c
+++ b/src/examples/dayselector_example.c
@@ -10,22 +10,17 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static void 14static void
20_on_done(void *data __UNUSED__, 15_on_done(void *data,
21 Evas_Object *obj __UNUSED__, 16 Evas_Object *obj,
22 void *event_info __UNUSED__) 17 void *event_info)
23{ 18{
24 elm_exit(); 19 elm_exit();
25} 20}
26 21
27/* Callback function when a day is clicked. */ 22/* Callback function when a day is clicked. */
28static void _changed_cb(void* data __UNUSED__, Evas_Object* obj, void* event_info) 23static void _changed_cb(void* data, Evas_Object* obj, void* event_info)
29{ 24{
30 char buf[256]; 25 char buf[256];
31 Elm_Dayselector_Day day; 26 Elm_Dayselector_Day day;
@@ -51,7 +46,7 @@ static void _changed_cb(void* data __UNUSED__, Evas_Object* obj, void* event_inf
51/* End of clicked callback */ 46/* End of clicked callback */
52 47
53EAPI_MAIN int 48EAPI_MAIN int
54elm_main(int argc __UNUSED__, char **argv __UNUSED__) 49elm_main(int argc, char **argv)
55{ 50{
56 Evas_Object *win, *bg, *bx, *dayselector; 51 Evas_Object *win, *bg, *bx, *dayselector;
57 52