summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-04-22 12:41:07 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-04-22 12:41:07 +0900
commit81fbd0e2625775036b55765e996000b6a9115337 (patch)
treee0b25e81ba0b9fe54bf37c5df897083542b1448f
parent3ccd966ffe8841dae398c9b3c647b079060d51f3 (diff)
Ecore: Fix compilation warnings
When HAVVE_LIBTS is not defined, we have 3 unused variable warnings. Fix that.
-rw-r--r--src/lib/ecore_fb/ecore_fb_ts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore_fb/ecore_fb_ts.c b/src/lib/ecore_fb/ecore_fb_ts.c
index 00a3f31..b9880ec 100644
--- a/src/lib/ecore_fb/ecore_fb_ts.c
+++ b/src/lib/ecore_fb/ecore_fb_ts.c
@@ -62,9 +62,11 @@ struct _Ecore_Fb_Ts_Flite
62 62
63static Eina_Bool _ecore_fb_ts_fd_handler(void *data, Ecore_Fd_Handler *fd_handler); 63static Eina_Bool _ecore_fb_ts_fd_handler(void *data, Ecore_Fd_Handler *fd_handler);
64static int _ecore_fb_ts_fd = -1; 64static int _ecore_fb_ts_fd = -1;
65static int _ecore_fb_ts_event_byte_count = 0;
66static int _ecore_fb_ts_apply_cal = 0; 65static int _ecore_fb_ts_apply_cal = 0;
66#ifndef HAVE_TSLIB
67static int _ecore_fb_ts_event_byte_count = 0;
67static Ecore_Fb_Ts_Event _ecore_fb_ts_event; 68static Ecore_Fb_Ts_Event _ecore_fb_ts_event;
69#endif
68static Ecore_Fb_Ts_Calibrate _ecore_fb_ts_cal = {1,1,0,0,0}; 70static Ecore_Fb_Ts_Calibrate _ecore_fb_ts_cal = {1,1,0,0,0};
69static Ecore_Fd_Handler *_ecore_fb_ts_fd_handler_handle = NULL; 71static Ecore_Fd_Handler *_ecore_fb_ts_fd_handler_handle = NULL;
70 72
@@ -228,7 +230,6 @@ _ecore_fb_ts_fd_handler(void *data EINA_UNUSED, Ecore_Fd_Handler *fd_handler EIN
228 { 230 {
229 int x, y, pressure; 231 int x, y, pressure;
230 int num; 232 int num;
231 char *ptr;
232 double t = 0.0; 233 double t = 0.0;
233 static int did_double = 0; 234 static int did_double = 0;
234 static int did_triple = 0; 235 static int did_triple = 0;
@@ -244,6 +245,7 @@ _ecore_fb_ts_fd_handler(void *data EINA_UNUSED, Ecore_Fd_Handler *fd_handler EIN
244 pressure = _ecore_fb_tslib_event.pressure; 245 pressure = _ecore_fb_tslib_event.pressure;
245 v = 1; /* loop, there might be more samples */ 246 v = 1; /* loop, there might be more samples */
246#else 247#else
248 char *ptr;
247 ptr = (char *)&(_ecore_fb_ts_event); 249 ptr = (char *)&(_ecore_fb_ts_event);
248 ptr += _ecore_fb_ts_event_byte_count; 250 ptr += _ecore_fb_ts_event_byte_count;
249 num = sizeof(Ecore_Fb_Ts_Event) - _ecore_fb_ts_event_byte_count; 251 num = sizeof(Ecore_Fb_Ts_Event) - _ecore_fb_ts_event_byte_count;