remove unused variables 31/70431/1 accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen_3.0 tizen_3.0.m2 accepted/tizen/3.0/ivi/20161011.043744 accepted/tizen/common/20160728.100422 accepted/tizen/ivi/20160803.025406 accepted/tizen/mobile/20160803.025315 accepted/tizen/tv/20160803.025331 accepted/tizen/unified/20170309.034228 accepted/tizen/wearable/20160803.025347 submit/tizen/20160728.041105 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_unified/20170308.100410
authorJongmin Lee <jm015.lee@samsung.com>
Thu, 19 May 2016 08:00:36 +0000 (17:00 +0900)
committerJongmin Lee <jm015.lee@samsung.com>
Thu, 19 May 2016 08:00:36 +0000 (17:00 +0900)
Change-Id: Ief5995ddf339a4ee63d0a8af7d671a2dbb192815

src/lib/efl_assist_screen_reader.c

index 50ed62d..383f4c0 100644 (file)
@@ -141,11 +141,11 @@ static void _timeout_cb(void *data, Evas_Object *obj, void *event_info)
 {
 #ifdef HAVE_X11
    Ecore_X_Window xwin=0;
+   unsigned int val;
 #endif
 #ifdef HAVE_WAYLAND
    Ecore_Wl_Window *wwin=0;
 #endif
-   unsigned int val;
 
 #ifdef HAVE_X11
    xwin = elm_win_xwindow_get(data);
@@ -175,13 +175,11 @@ ea_screen_reader_support_set(Evas_Object *win, Eina_Bool support)
 {
 #ifdef HAVE_X11
    Ecore_X_Window w=0;
+   unsigned int val;
 #elif defined HAVE_WAYLAND
    Ecore_Wl_Window *w=0;
 #endif
-   unsigned int val;
    int tts_val;
-   Evas_Object *base;
-   Evas_Object *body;
    Evas_Object *popup;
 
    if (vconf_get_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, &tts_val) != 0)
@@ -201,9 +199,9 @@ ea_screen_reader_support_set(Evas_Object *win, Eina_Bool support)
 
    if (support)
      {
-        val = 0;
         elm_config_access_set(EINA_TRUE);
 #ifdef HAVE_X11
+        val = 0;
         ecore_x_window_prop_card32_set
           (w, ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL, &val, 1);
 #else