From: Lukasz Stanislawski Date: Sat, 30 Jan 2016 10:16:27 +0000 (+0100) Subject: resolve undefined enum value X-Git-Tag: submit/tizen_mobile/20160419.064440~14^2~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f055f73e9ea86d6933114a8df21f8e26f324cd5c;p=profile%2Fmobile%2Fapps%2Fnative%2Findicator.git resolve undefined enum value For some reason clang compiler do not allow to declare variable initialized with enum in case statement. Change-Id: I53a0f8eabe3bc3d6aa446909c9777958d49608d7 Signed-off-by: Lukasz Stanislawski --- diff --git a/src/main.c b/src/main.c index c56bfe4..3c368a4 100644 --- a/src/main.c +++ b/src/main.c @@ -35,6 +35,7 @@ #if 0 #include #endif +#include #include "common.h" #include "box.h" @@ -974,6 +975,7 @@ static void _indicator_mouse_up_cb(void *data, Evas * e, Evas_Object * obj, void #else /* HOME_REMOVE_LONGPRESS */ int mouse_up_prio = -1; int mouse_down_prio = -1; + int lock_state; if (home_button_pressed == EINA_TRUE) { home_button_pressed = EINA_FALSE; @@ -989,7 +991,7 @@ static void _indicator_mouse_up_cb(void *data, Evas * e, Evas_Object * obj, void && mouse_down_prio == mouse_up_prio) { switch (mouse_down_prio) { case INDICATOR_PRIORITY_FIXED1: - int lock_state = VCONFKEY_IDLE_UNLOCK; + lock_state = VCONFKEY_IDLE_UNLOCK; int lock_ret = -1; lock_ret = vconf_get_int(VCONFKEY_IDLE_LOCK_STATE,