On Wed, 2013-12-11 at 12:24 -0800, Keith Packard wrote:
> And fix resulting warnings.
> 
> Signed-off-by: Keith Packard <[email protected]>
> Reviewed-by: Ian Romanick <[email protected]>

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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to