[Mesa-dev] [PATCH] egl: Fix -Wint-to-pointer-cast

Emil Velikov emil.l.velikov at gmail.com
Mon May 8 13:13:49 UTC 2017


On 5 May 2017 at 20:27, Chad Versace <chadversary at chromium.org> wrote:
> main/egldisplay.c: In function '_eglParseX11DisplayAttribList':
> main/egldisplay.c:491:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>           display->Options.Platform = (void *)value;
>
> The fix: cast to uinptr_t before void*.
>                                       ^
> Fixes: ddb99127 egl/x11: Honor the EGL_PLATFORM_X11_SCREEN_EXT attribute
> Cc: Adam Jackson <ajax at redhat.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

FWIW this is the only -Wint-to-pointer-cast warning in all of Mesa ;-)
Emil


More information about the mesa-dev mailing list