> From: Adam Jackson <[email protected]> > Date: Fri, 13 Dec 2013 15:42:56 -0500 > > 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.
It makes much more sense to consistently print drm_context_t as %u or 0x%x. It's an unsigned int on both OpenBSD and Linux, so I suspect that's the case everywhere. _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
