ecore_input: Remove warning message 26/117726/1 accepted/tizen/common/20170309.175613 accepted/tizen/ivi/20170310.031702 accepted/tizen/mobile/20170310.031358 accepted/tizen/tv/20170310.031515 accepted/tizen/unified/20170310.080710 accepted/tizen/wearable/20170310.031619 submit/tizen/20170309.095236 submit/tizen_unified/20170310.011402
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 7 Mar 2017 07:59:43 +0000 (16:59 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 7 Mar 2017 07:59:43 +0000 (16:59 +0900)
ecore_input_joystick_init/shutdown are deprecated, and these are internal functions.
The deprecated declaration makes warning message because ecore_event_init/shutdown uses those internally.

@tizen_fix

Change-Id: Ie904bdd72d75627a99aceb6d43d26ed55834847b

src/lib/ecore_input/ecore_input.c

index 40c0318..ad0917a 100644 (file)
@@ -64,7 +64,11 @@ ecore_event_init(void)
    ECORE_EVENT_DETENT_ROTATE = ecore_event_type_new(); //TIZEN ONLY
    ECORE_EVENT_JOYSTICK = ecore_event_type_new();
 
+   //TIZEN_ONLY(20170307) Remove warning message
+   #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    ecore_input_joystick_init();
+   #pragma GCC diagnostic pop
+   //
 
    return _ecore_event_init_count;
 }
@@ -89,7 +93,11 @@ ecore_event_shutdown(void)
    ECORE_EVENT_DEVICE_DEL = 0;
    ECORE_EVENT_DETENT_ROTATE = 0; //TIZEN ONLY
    ECORE_EVENT_JOYSTICK = 0;
+   //TIZEN_ONLY(20170307) Remove warning message
+   #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    ecore_input_joystick_shutdown();
+   #pragma GCC diagnostic pop
+   //
    eina_log_domain_unregister(_ecore_input_log_dom);
    _ecore_input_log_dom = -1;
    ecore_shutdown();