From 232dbb66cee69043516ba67becd0c4e42bdefcc7 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Mon, 9 May 2016 17:34:07 +0900 Subject: [PATCH] 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 --- src/lib/elm_conform.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 } -- 2.7.4