Skip to content
Snippets Groups Projects
  • Wujian Sun's avatar
    b67d53d7
    eglkms: Fix build break on GCC 14 · b67d53d7
    Wujian Sun authored
    
    | ../mesa-demos-8.5.0/src/egl/opengl/eglkms.c: In function 'main':
    | ../mesa-demos-8.5.0/src/egl/opengl/eglkms.c:190:24: error: passing
    argument 1 of 'eglGetDisplay' from incompatible pointer type
    [-Wincompatible-pointer-types]
    |   190 |    dpy = eglGetDisplay(gbm);
    |       |                        ^~~
    |       |                        |
    |       |                        struct gbm_device *
    | In file included from ../mesa-demos-8.5.0/src/egl/opengl/eglkms.c:33:
    
    Type' {aka 'struct wl_display *'} but argument is of type 'struct
    gbm_device *'
    |   143 | EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay
    (EGLNativeDisplayType display_id);
    |       |
    ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
    | ../mesa-demos-8.5.0/src/egl/opengl/eglkms.c:229:50: error: passing
    argument 3 of 'eglCreateWindowSurface' from incompatible pointer type
    [-Wincompatible-pointer-types]
    |   229 |    surface = eglCreateWindowSurface(dpy, config, gs, NULL);
    |       |                                                  ^~
    |       |                                                  |
    |       |                                                  struct
    gbm_surface *
    
    Signed-off-by: default avatarWujian Sun <wujian.sun_1@nxp.com>
    Reviewed-by: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>
    b67d53d7
    History
    eglkms: Fix build break on GCC 14
    Wujian Sun authored
    
    | ../mesa-demos-8.5.0/src/egl/opengl/eglkms.c: In function 'main':
    | ../mesa-demos-8.5.0/src/egl/opengl/eglkms.c:190:24: error: passing
    argument 1 of 'eglGetDisplay' from incompatible pointer type
    [-Wincompatible-pointer-types]
    |   190 |    dpy = eglGetDisplay(gbm);
    |       |                        ^~~
    |       |                        |
    |       |                        struct gbm_device *
    | In file included from ../mesa-demos-8.5.0/src/egl/opengl/eglkms.c:33:
    
    Type' {aka 'struct wl_display *'} but argument is of type 'struct
    gbm_device *'
    |   143 | EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay
    (EGLNativeDisplayType display_id);
    |       |
    ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
    | ../mesa-demos-8.5.0/src/egl/opengl/eglkms.c:229:50: error: passing
    argument 3 of 'eglCreateWindowSurface' from incompatible pointer type
    [-Wincompatible-pointer-types]
    |   229 |    surface = eglCreateWindowSurface(dpy, config, gs, NULL);
    |       |                                                  ^~
    |       |                                                  |
    |       |                                                  struct
    gbm_surface *
    
    Signed-off-by: default avatarWujian Sun <wujian.sun_1@nxp.com>
    Reviewed-by: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>