[PATCH 28/44] xfree86/dri: Mark DRIDrvMsg and dri_drm_debug_print _X_ATTRIBUTE_PRINTF
Adam Jackson
ajax at nwnk.net
Fri Dec 13 12:42:56 PST 2013
On Wed, 2013-12-11 at 12:24 -0800, Keith Packard wrote:
> And fix resulting warnings.
>
> Signed-off-by: Keith Packard <keithp at keithp.com>
> Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Just tried to build this and got:
dri.c: In function 'DRILock':
dri.c:2228:46: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
pDRIPriv->pLockingContext, (void *) pDRIPriv->myContext);
^
dri.c: In function 'DRIUnlock':
dri.c:2246:50: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
pDRIPriv->pLockingContext, (void *) pDRIPriv->myContext);
^
Hooray for LP64. These need to be (void *) (uintptr_t) foo.
- ajax
More information about the xorg-devel
mailing list