summaryrefslogtreecommitdiff
path: root/src/examples/elementary/photocam_example_01.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 15:33:59 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 17:44:57 +0900
commitbcf3ce84289ad4c91e89d6f5c3c9167af60036f3 (patch)
treed22ab98afccd2f5570aec74fd7957547c2011025 /src/examples/elementary/photocam_example_01.c
parenta71b770bbc848bff2231bac1e75bf2a85885aca5 (diff)
examples: Fix most trivial warnings
This fixes all warnings for "make examples" for: -Wunused-parameter -Wshadow -Wformat-security -Wenum-conversion Some remaining warnings include: -Wdeprecated-delcarations
Diffstat (limited to 'src/examples/elementary/photocam_example_01.c')
-rw-r--r--src/examples/elementary/photocam_example_01.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/examples/elementary/photocam_example_01.c b/src/examples/elementary/photocam_example_01.c
index 7826591fc1..cd37cfad7a 100644
--- a/src/examples/elementary/photocam_example_01.c
+++ b/src/examples/elementary/photocam_example_01.c
@@ -19,7 +19,7 @@ struct _Orient_Data
19}; 19};
20 20
21EAPI_MAIN int 21EAPI_MAIN int
22elm_main(int argc, char **argv) 22elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
23{ 23{
24 Evas_Object *win, *obj, *photocam, *menu; 24 Evas_Object *win, *obj, *photocam, *menu;
25 Orient_Data *orient_data; 25 Orient_Data *orient_data;
@@ -111,7 +111,7 @@ elm_main(int argc, char **argv)
111ELM_MAIN() 111ELM_MAIN()
112 112
113static void 113static void
114_bring_in(void *data, Evas_Object *obj, void *event_info) 114_bring_in(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
115{ 115{
116 int w, h; 116 int w, h;
117 elm_photocam_image_size_get(obj, &w, &h); 117 elm_photocam_image_size_get(obj, &w, &h);
@@ -119,7 +119,7 @@ _bring_in(void *data, Evas_Object *obj, void *event_info)
119} 119}
120 120
121static void 121static void
122_fit(void *data, Evas_Object *obj, void *event_info) 122_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
123{ 123{
124 int x, y, w, h; 124 int x, y, w, h;
125 elm_photocam_image_region_get(data, &x, &y, &w, &h); 125 elm_photocam_image_region_get(data, &x, &y, &w, &h);
@@ -128,20 +128,20 @@ _fit(void *data, Evas_Object *obj, void *event_info)
128} 128}
129 129
130static void 130static void
131_unfit(void *data, Evas_Object *obj, void *event_info) 131_unfit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
132{ 132{
133 elm_photocam_zoom_mode_set(data, ELM_PHOTOCAM_ZOOM_MODE_MANUAL); 133 elm_photocam_zoom_mode_set(data, ELM_PHOTOCAM_ZOOM_MODE_MANUAL);
134} 134}
135 135
136static void 136static void
137_zoom(void *data, Evas_Object *obj, void *event_info) 137_zoom(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
138{ 138{
139 double z = elm_slider_value_get(obj) * 8; 139 double z = elm_slider_value_get(obj) * 8;
140 elm_photocam_zoom_set(data, z); 140 elm_photocam_zoom_set(data, z);
141} 141}
142 142
143static void 143static void
144_orient(void *data, Evas_Object *obj, void *event_info) 144_orient(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
145{ 145{
146 Evas_Object *mn = data; 146 Evas_Object *mn = data;
147 if (!mn) return; 147 if (!mn) return;
@@ -150,7 +150,7 @@ _orient(void *data, Evas_Object *obj, void *event_info)
150} 150}
151 151
152static void 152static void
153_orient_do(void *data, Evas_Object *obj, void *event_info) 153_orient_do(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
154{ 154{
155 Orient_Data *orient_data = data; 155 Orient_Data *orient_data = data;
156 if (!orient_data) return; 156 if (!orient_data) return;