summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-11-14 22:33:34 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-11-14 22:33:34 +0000
commitcae47a665085358605757b66a1751bff913e92a3 (patch)
treea0c55f3e633274dc7d66f4bd889fec93426e1cb2 /legacy
parent9faf53f4e58934b6a4d9d359bbffb82f4e424ee4 (diff)
Ecore: fix warning when no timer dump are requested
Patch by Fabien Romano from OpenBSD SVN revision: 65212
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_timer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_timer.c b/legacy/ecore/src/lib/ecore/ecore_timer.c
index f457a4eb55..9c66545bdc 100644
--- a/legacy/ecore/src/lib/ecore/ecore_timer.c
+++ b/legacy/ecore/src/lib/ecore/ecore_timer.c
@@ -41,8 +41,10 @@ static void _ecore_timer_set(Ecore_Timer *timer,
41 double in, 41 double in,
42 Ecore_Task_Cb func, 42 Ecore_Task_Cb func,
43 void *data); 43 void *data);
44#ifdef WANT_ECORE_TIMER_DUMP
44static int _ecore_timer_cmp(const void *d1, 45static int _ecore_timer_cmp(const void *d1,
45 const void *d2); 46 const void *d2);
47#endif
46 48
47static int timers_added = 0; 49static int timers_added = 0;
48static int timers_delete_me = 0; 50static int timers_delete_me = 0;
@@ -785,6 +787,7 @@ _ecore_timer_set(Ecore_Timer *timer,
785 timers = (Ecore_Timer *)eina_inlist_prepend(EINA_INLIST_GET(timers), EINA_INLIST_GET(timer)); 787 timers = (Ecore_Timer *)eina_inlist_prepend(EINA_INLIST_GET(timers), EINA_INLIST_GET(timer));
786} 788}
787 789
790#ifdef WANT_ECORE_TIMER_DUMP
788static int 791static int
789_ecore_timer_cmp(const void *d1, 792_ecore_timer_cmp(const void *d1,
790 const void *d2) 793 const void *d2)
@@ -794,4 +797,4 @@ _ecore_timer_cmp(const void *d1,
794 797
795 return (int)((t1->in - t2->in) * 100); 798 return (int)((t1->in - t2->in) * 100);
796} 799}
797 800#endif