From: caro Date: Mon, 14 Nov 2011 22:33:34 +0000 (+0000) Subject: Ecore: fix warning when no timer dump are requested X-Git-Tag: 2.0_alpha~122^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7380ed957effd80c5637926d1cf2166e014f0a7;p=framework%2Fuifw%2Fecore.git Ecore: fix warning when no timer dump are requested Patch by Fabien Romano from OpenBSD git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@65212 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore/ecore_timer.c b/src/lib/ecore/ecore_timer.c index f457a4e..9c66545 100644 --- a/src/lib/ecore/ecore_timer.c +++ b/src/lib/ecore/ecore_timer.c @@ -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