• Jon Turney's avatar
    glx/windows: Fix compilation with -Werror-format · 87173ded
    Jon Turney authored
    Fix compilation where the DWORD type is used with a format, after
    -Werror-format added by c9c1e261.
    
    Some Win32 API types are different fundamental types in the 32-bit and
    64-bit versions. This problem is then further compounded by the fact
    that whilst both 32-bit Cygwin and 32-bit MinGW use the ILP32 data
    model, 64-bit MinGW uses the LLP64 data model, but 64-bit Cygwin uses
    the LP64 data model. This makes it near impossible to write printf
    format specifiers which are correct for all those targets.
    
    In the Win32 API, DWORD is an unsigned, 32-bit type.  So, it is defined
    in terms of an unsigned long, except in the LP64 data model used by
    64-bit Cygwin, where it is an unsigned int.
    
    It should always be safe to cast it to unsigned int and use %u or %x.
    Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
    87173ded
Name
Last commit
Last update
..
apple Loading commit data...
tests Loading commit data...
windows Loading commit data...
SConscript Loading commit data...
XF86dri.c Loading commit data...
applegl_glx.c Loading commit data...
clientattrib.c Loading commit data...
clientinfo.c Loading commit data...
compsize.c Loading commit data...
create_context.c Loading commit data...
dri2.c Loading commit data...
dri2.h Loading commit data...
dri2_glx.c Loading commit data...
dri2_priv.h Loading commit data...
dri3_glx.c Loading commit data...
dri3_priv.h Loading commit data...
dri_common.c Loading commit data...
dri_common.h Loading commit data...
dri_common_interop.c Loading commit data...
dri_common_query_renderer.c Loading commit data...
dri_glx.c Loading commit data...
dri_sarea.h Loading commit data...
drisw_glx.c Loading commit data...
drisw_priv.h Loading commit data...
driwindows_glx.c Loading commit data...
eval.c Loading commit data...
g_glxglvnddispatchfuncs.c Loading commit data...
g_glxglvnddispatchindices.h Loading commit data...
glx_error.c Loading commit data...
glx_error.h Loading commit data...
glx_pbuffer.c Loading commit data...
glx_query.c Loading commit data...
glxclient.h Loading commit data...
glxcmds.c Loading commit data...
glxconfig.c Loading commit data...
glxconfig.h Loading commit data...
glxcurrent.c Loading commit data...
glxext.c Loading commit data...
glxextensions.c Loading commit data...
glxextensions.h Loading commit data...
glxglvnd.c Loading commit data...
glxglvnd.h Loading commit data...
glxglvnddispatchfuncs.h Loading commit data...
glxhash.c Loading commit data...
glxhash.h Loading commit data...
indirect_glx.c Loading commit data...
indirect_init.h Loading commit data...
indirect_texture_compression.c Loading commit data...
indirect_transpose_matrix.c Loading commit data...
indirect_vertex_array.c Loading commit data...
indirect_vertex_array.h Loading commit data...
indirect_vertex_array_priv.h Loading commit data...
indirect_vertex_program.c Loading commit data...
indirect_window_pos.c Loading commit data...
meson.build Loading commit data...
packrender.h Loading commit data...
packsingle.h Loading commit data...
pixel.c Loading commit data...
pixelstore.c Loading commit data...
query_renderer.c Loading commit data...
render2.c Loading commit data...
renderpix.c Loading commit data...
single2.c Loading commit data...
singlepix.c Loading commit data...
vertarr.c Loading commit data...
xf86dri.h Loading commit data...
xf86dristr.h Loading commit data...
xfont.c Loading commit data...