From 4dfde2cd245e3d8ffcb426232fa8245d5b0b88fc Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 12 Jan 2018 10:50:26 -0500 Subject: [PATCH] elementary: Fix constant qualifer warning message Gcc complains here due to _wl_default_seat_id_get not accepting a 'const' Evas_Object, so to avoid the warning just case it to a normal Evas_Object when passing in. Signed-off-by: Chris Michael --- src/lib/elementary/efl_selection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/efl_selection.c b/src/lib/elementary/efl_selection.c index 00cfe13e1b..cbbe98286c 100644 --- a/src/lib/elementary/efl_selection.c +++ b/src/lib/elementary/efl_selection.c @@ -107,7 +107,8 @@ _wl_window_get(const Evas_Object *obj) return win; } -int _wl_default_seat_id_get(Evas_Object *obj) +int +_wl_default_seat_id_get(Evas_Object *obj) { Ecore_Wl2_Window *win = _wl_window_get(obj); Eo *seat, *parent2, *ewin; @@ -211,7 +212,7 @@ elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type type, if (!wdata) return EINA_FALSE; #ifdef HAVE_ELEMENTARY_WL2 - seatid = _wl_default_seat_id_get(obj); + seatid = _wl_default_seat_id_get((Evas_Object *)obj); #endif wdata->udata = udata; wdata->datacb = datacb;