Getting int-conversion fatal error during compilation with gcc-14
Getting below int-conversion fatal during compilation with gcc-14 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'
As I am not able to fork main branch. so, not able to raise PR request.
Requesting to create PR and merge below changes.
Edited by purushottam kumar