From: Amitesh Singh Date: Thu, 26 Dec 2013 05:27:32 +0000 (+0900) Subject: clock: Fixed warning messages related to local variable named "pause". X-Git-Tag: v1.9.0-alpha1~367 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea62d081c12f6bb22ea667cf3a6788f001e83769;p=platform%2Fupstream%2Felementary.git clock: Fixed warning messages related to local variable named "pause". Summary: Fixed the warning message. elm_clock.c: In function 'elm_clock_pause_set': elm_clock.c:1082:49: warning: declaration of 'pause' shadows a global declaration [-Wshadow] elm_clock.c: In function '_pause_set': elm_clock.c:1091:14: warning: declaration of 'pause' shadows a global declaration [-Wshadow] Reviewers: seoz CC: nirajkr Differential Revision: https://phab.enlightenment.org/D403 --- diff --git a/src/lib/elm_clock.c b/src/lib/elm_clock.c index 30b5dcb..7cf7259 100644 --- a/src/lib/elm_clock.c +++ b/src/lib/elm_clock.c @@ -1079,22 +1079,22 @@ _first_interval_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list) } EAPI void -elm_clock_pause_set(Evas_Object *obj, Eina_Bool pause) +elm_clock_pause_set(Evas_Object *obj, Eina_Bool paused) { ELM_CLOCK_CHECK(obj); - eo_do(obj, elm_obj_clock_pause_set(pause)); + eo_do(obj, elm_obj_clock_pause_set(paused)); } static void _pause_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list) { - Eina_Bool pause = va_arg(*list, int); + Eina_Bool paused = va_arg(*list, int); Elm_Clock_Smart_Data *sd = _pd; - pause = !!pause; - if (sd->paused == pause) + paused = !!paused; + if (sd->paused == paused) return; - sd->paused = pause; - if (pause) + sd->paused = paused; + if (paused) ecore_timer_freeze(sd->ticker); else {