[PATCH] Suppress a warning about mismatched parameter in format string (expected long int, provided unsigned int).
jcristau at debian.org
Wed Apr 25 04:00:21 PDT 2007
On Wed, Apr 25, 2007 at 06:17:22 -0400, Zephaniah E. Hull wrote:
> On Wed, Apr 25, 2007 at 03:06:27AM +0200, Giuseppe Bilotta wrote:
> > - xf86Msg(X_ERROR, "Read error: %s (%d, %d != %ld)\n",
> > + xf86Msg(X_ERROR, "Read error: %s (%d, %d != %u)\n",
> > strerror(errno), errno, len, sizeof (ev));
> See, this is one of those funky cases where fixing the warning is the
> wrong answer.
> See, on x86 sizeof returns an int, on amd64 sizeof returns a long, which
> makes it slightly harder to avoid a warning on all systems without using
> a cast.
Would it be possible to use %zd, or is that not supported on all
More information about the xorg