diff options
author | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2016-01-30 11:16:27 +0100 |
---|---|---|
committer | Michal Pawluk <m.pawluk@samsung.com> | 2016-01-31 09:40:58 -0800 |
commit | f055f73e9ea86d6933114a8df21f8e26f324cd5c (patch) | |
tree | 175223ed29b1089119002689a7df0bb229ed9141 /src/main.c | |
parent | 3f6ae2aba40be76f0f1e88c73febde028b8679c0 (diff) | |
download | indicator-win-f055f73e9ea86d6933114a8df21f8e26f324cd5c.tar.gz indicator-win-f055f73e9ea86d6933114a8df21f8e26f324cd5c.tar.bz2 indicator-win-f055f73e9ea86d6933114a8df21f8e26f324cd5c.zip |
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 <l.stanislaws@samsung.com>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -35,6 +35,7 @@ #if 0 #include <app_manager_product.h> #endif +#include <vconf/vconf-internal-idle-lock-keys.h> #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, |