Ecore: fix warning when no timer dump are requested

Patch by Fabien Romano from OpenBSD


SVN revision: 65212
This commit is contained in:
Vincent Torri 2011-11-14 22:33:34 +00:00
parent 9faf53f4e5
commit cae47a6650
1 changed files with 4 additions and 1 deletions

View File

@ -41,8 +41,10 @@ static void _ecore_timer_set(Ecore_Timer *timer,
double in,
Ecore_Task_Cb func,
void *data);
#ifdef WANT_ECORE_TIMER_DUMP
static int _ecore_timer_cmp(const void *d1,
const void *d2);
#endif
static int timers_added = 0;
static int timers_delete_me = 0;
@ -785,6 +787,7 @@ _ecore_timer_set(Ecore_Timer *timer,
timers = (Ecore_Timer *)eina_inlist_prepend(EINA_INLIST_GET(timers), EINA_INLIST_GET(timer));
}
#ifdef WANT_ECORE_TIMER_DUMP
static int
_ecore_timer_cmp(const void *d1,
const void *d2)
@ -794,4 +797,4 @@ _ecore_timer_cmp(const void *d1,
return (int)((t1->in - t2->in) * 100);
}
#endif