From: JunsuChoi Date: Mon, 9 May 2016 08:34:07 +0000 (+0900) Subject: elm_conform : remove build warnings X-Git-Tag: accepted/tizen/common/20160525.155738~13^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F68695%2F2;p=platform%2Fupstream%2Felementary.git elm_conform : remove build warnings Covered function that causes unused function warning with HAVE_ELEMENTARY_X macro and removed unused variable 'part_type'. Removing this variable does not affect working. Also instead of some unused parameters (void)variable_name line was added. Change-Id: Idaaa92335400d7b79d968317c7f50de0a5c1721c --- diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c index 8b47112..3d9c58a 100644 --- a/src/lib/elm_conform.c +++ b/src/lib/elm_conform.c @@ -56,6 +56,7 @@ static Evas_Object *_precreated_conform_obj = NULL; * ILLUME_IND="0, 0, 800, 32" * ILLUME_STK="0, 568, 800, 32" */ +#ifdef HAVE_ELEMENTARY_X static Eina_Bool _conformant_part_geometry_get_from_env(const char *part, int *sx, @@ -96,6 +97,7 @@ _conformant_part_geometry_get_from_env(const char *part, return EINA_TRUE; } +#endif static void _conformant_part_size_hints_set(Evas_Object *obj, @@ -941,13 +943,9 @@ _on_conformant_changed(void *data, Evas_Object *obj, void *event_info) { - Conformant_Part_Type part_type; Conformant_Property property = (Conformant_Property) event_info; Elm_Win_Keyboard_Mode mode; - part_type = (ELM_CONFORMANT_INDICATOR_PART | - ELM_CONFORMANT_VIRTUAL_KEYPAD_PART); - ELM_CONFORMANT_DATA_GET(data, sd); /* object is already freed */ @@ -1050,6 +1048,10 @@ _elm_conformant_elm_widget_parent_set(Eo *obj, Elm_Conformant_Data *sd, Evas_Obj sd->clipboard_state = ECORE_X_ILLUME_CLIPBOARD_STATE_OFF; } // FIXME: get kbd region prop +#else + (void)obj; + (void)sd; + (void)parent; #endif }