raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=df5702a6093fd0de4ae2b073392ae3d7233bffed

commit df5702a6093fd0de4ae2b073392ae3d7233bffed
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Thu Nov 8 15:36:38 2018 +0000

    evas sw x11 - warn - use void ptr for error handler
    
    warnings now are being super picky with:
    
    ../src/modules/evas/engines/software_x11/evas_xlib_buffer.c: In
    function ‘evas_software_xlib_x_output_buffer_new’:
    ../src/modules/evas/engines/software_x11/evas_xlib_buffer.c:306:56:
    warning: cast between incompatible function types from ‘void
    (*)(Display *, XErrorEvent *)’ {aka ‘void (*)(struct _XDisplay *,
    struct <anonymous> *)’} to ‘int (*)(Display *, XErrorEvent *)’ {aka
    ‘int (*)(struct _XDisplay *, struct <anonymous> *)’}
    [-Wcast-function-type]
                                      ph = XSetErrorHandler((XErrorHandler)
    
    can we really match a struct <anonymous> somehow? i don't think so...
    so... void to the rescue.
---
 src/modules/evas/engines/software_x11/evas_xlib_buffer.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/software_x11/evas_xlib_buffer.c 
b/src/modules/evas/engines/software_x11/evas_xlib_buffer.c
index d4b082540a..3a10773d00 100644
--- a/src/modules/evas/engines/software_x11/evas_xlib_buffer.c
+++ b/src/modules/evas/engines/software_x11/evas_xlib_buffer.c
@@ -303,8 +303,7 @@ evas_software_xlib_x_output_buffer_new(Display *d, Visual 
*v, int depth, int w,
                               {
                                  XSync(d, False);
                                  _x_err = 0;
-                                 ph = XSetErrorHandler((XErrorHandler)
-                                                       x_output_tmp_x_err);
+                                 ph = XSetErrorHandler((void 
*)x_output_tmp_x_err);
                               }
 #if defined(LIBXEXT_VERSION_LOW)
                             /* workaround for libXext of lower then 1.1.1 */

-- 


Reply via email to