elementary: Fix constant qualifer warning message
authorChris Michael <cp.michael@samsung.com>
Fri, 12 Jan 2018 15:50:26 +0000 (10:50 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 17 Jan 2018 09:19:29 +0000 (18:19 +0900)
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 <cp.michael@samsung.com>
src/lib/elementary/efl_selection.c

index 00cfe13..cbbe982 100644 (file)
@@ -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;