ecore_drm: fix build warnings 45/141145/1
authorJengHyun Kang <jhyuni.kang@samsung.com>
Fri, 28 Jul 2017 08:44:38 +0000 (17:44 +0900)
committerJengHyun Kang <jhyuni.kang@samsung.com>
Fri, 28 Jul 2017 08:44:38 +0000 (17:44 +0900)
Change-Id: I3ae9c8722aaf028605f940c2c0a8bcaa063c5430

src/lib/ecore_drm/ecore_drm_device.c
src/lib/ecore_drm/ecore_drm_evdev.c
src/lib/ecore_drm/ecore_drm_inputs.c

index ee3a0ad..4009052 100644 (file)
@@ -903,7 +903,6 @@ ecore_drm_device_pointer_rotation_set(Ecore_Drm_Device *dev, int rotation)
 EAPI void
 ecore_drm_device_rotation_set(Ecore_Drm_Device *dev, unsigned int rotation)
 {
-   unsigned int rot = 0;
    Ecore_Drm_Seat *seat = NULL;
    Ecore_Drm_Evdev *edev = NULL;
    Eina_List *l = NULL, *l2 = NULL;
index db27aa7..1e123f4 100644 (file)
@@ -1046,8 +1046,9 @@ _device_handle_touch_frame(struct libinput_device *device EINA_UNUSED, struct li
 }
 
 static void
-_ecore_drm_aux_data_event_free(void *user_data EINA_UNUSED, Ecore_Event_Axis_Update *e)
+_ecore_drm_aux_data_event_free(void *user_data EINA_UNUSED, void *ev)
 {
+   Ecore_Event_Axis_Update *e = (Ecore_Event_Axis_Update *)ev;
    if (e->axis)
      free(e->axis);
    free(e);
index e547d92..a42edaf 100644 (file)
@@ -460,13 +460,13 @@ ecore_drm_libinput_log_handler(struct libinput *libinput EINA_UNUSED,
    switch (priority)
      {
         case LIBINPUT_LOG_PRIORITY_DEBUG:
-           DBG(buf);
+           DBG("%s", buf);
            break;
         case LIBINPUT_LOG_PRIORITY_INFO:
-           INF(buf);
+           INF("%s", buf);
            break;
         case LIBINPUT_LOG_PRIORITY_ERROR:
-           ERR(buf);
+           ERR("%s", buf);
            break;
         default:
            break;