From 1ef1c04f421736bfed5a5d9d22b1a6be21e65812 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 29 Jun 2017 13:42:21 +0900 Subject: [PATCH] gl_drm: Fix a few compilation warnings warning: expression which evaluates to zero treated as a null pointer constant of type 'void *' [-Wnon-literal-null-conversion] --- src/modules/evas/engines/gl_drm/evas_engine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c b/src/modules/evas/engines/gl_drm/evas_engine.c index 2e0fea8868..b1083a18aa 100644 --- a/src/modules/evas/engines/gl_drm/evas_engine.c +++ b/src/modules/evas/engines/gl_drm/evas_engine.c @@ -784,13 +784,13 @@ eng_image_plane_assign(void *data, void *image, int x, int y) Ecore_Drm2_Plane *plane = NULL; struct scanout_handle *g; - EINA_SAFETY_ON_NULL_RETURN_VAL(image, EINA_FALSE); + EINA_SAFETY_ON_NULL_RETURN_VAL(image, NULL); re = (Render_Engine *)data; - EINA_SAFETY_ON_NULL_RETURN_VAL(re, EINA_FALSE); + EINA_SAFETY_ON_NULL_RETURN_VAL(re, NULL); ob = eng_get_ob(re); - EINA_SAFETY_ON_NULL_RETURN_VAL(ob, EINA_FALSE); + EINA_SAFETY_ON_NULL_RETURN_VAL(ob, NULL); img = image; n = img->native.data;