From 69c44e0625c073a08c1bf0d83bf0f1fcf193a8f2 Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Thu, 20 Feb 2020 17:26:22 +0900 Subject: [PATCH] elementary: return proper value when failed to get widget data Fixes '-Wreturn-type' compiler warning. @tizen_fix Change-Id: I96a404c41c6eacc9e3d9d6d02c9022c4be2663ce --- src/lib/elementary/elm_notify.c | 2 +- src/lib/elementary_tizen/elm_genlist.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_notify.c b/src/lib/elementary/elm_notify.c index 74c3f5444e..51e4dcd034 100644 --- a/src/lib/elementary/elm_notify.c +++ b/src/lib/elementary/elm_notify.c @@ -574,7 +574,7 @@ EOLIAN static Eina_Bool _elm_notify_efl_ui_widget_transition_duration_factor_set(Eo *obj, Elm_Notify_Data *sd, double duration) { //transition is on - ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE); if (duration == wd->transition_duration) return EINA_TRUE; diff --git a/src/lib/elementary_tizen/elm_genlist.c b/src/lib/elementary_tizen/elm_genlist.c index a5c2e1028d..23afa4e87b 100644 --- a/src/lib/elementary_tizen/elm_genlist.c +++ b/src/lib/elementary_tizen/elm_genlist.c @@ -3801,7 +3801,7 @@ _item_select(Elm_Gen_Item *it) efl_ref(EO_OBJ(it)); // TIZEN_ONLY(20170718) - Add new variable for solve item select issue. - ELM_WIDGET_DATA_GET_OR_RETURN(WIDGET(it), wsd); + ELM_WIDGET_DATA_GET_OR_RETURN(WIDGET(it), wsd, EINA_FALSE); if (wsd->scroll_item_align_enable) { if (sd->selecting_item && it == sd->selecting_item) -- 2.34.1