[PATCH] dix: silence compiler warning
Mark Kettenis
mark.kettenis at xs4all.nl
Mon Apr 18 00:26:54 PDT 2011
> Date: Mon, 18 Apr 2011 15:55:42 +1000
> From: Peter Hutterer <peter.hutterer at who-t.net>
>
> resource.c: In function 'AddResource':
> resource.c:493:3: warning: format '%lx' expects type 'long unsigned int',
> but argument 3 has type 'RESTYPE'
>
> RESTYPE is uint32_t, not long.
Well, uint32_t isn't a fundamental type. And while the most natural
thing on ILP32 and LP64 systems is to typedef it as unsigned int, it
may actually be unsigned long on some systems. It probably is on Windows.
More information about the xorg-devel
mailing list