Skip to content

vrend: Fix int-conversion fatal build error with GCC-14

Corentin Noël requested to merge tintou/int-error into main

Getting below error int conversion during compilation as one the platforms where EGLNativeDisplayType is an int instead of a pointer.

| ../git/src/vrend_winsys_egl.c: In function 'virgl_egl_init':
| ../git/src/vrend_winsys_egl.c:364:62: error: passing argument 2 of 'egl->funcs.epoxy_eglGetPlatformDisplay' makes pointer from
|   364 |                                                              (EGLNativeDisplayType)egl->gbm->device, NULL);
|       |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                                                              |
|       |                                                              int
| ../git/src/vrend_winsys_egl.c:364:62: note: expected 'void *' but argument is of type 'int'

Closes #580 (closed)

Edited by Corentin Noël

Merge request reports

Loading