Re: 2.6.12-rc2 compile error in drivers/usb/class/cdc-acm.c
From: Andrew Morton
Date: Wed Apr 06 2005 - 17:28:04 EST
Ben Castricum <benc@xxxxxxxxxxxxxxx> wrote:
>
>
>
> On Wed, 6 Apr 2005, Adrian Bunk wrote:
>
> > On Tue, Apr 05, 2005 at 10:54:09AM +0200, Ben Castricum wrote:
> > > ...
> > > CC fs/quota_v2.o
> > > fs/quota_v2.c: In function `v2_write_dquot':
> > > fs/quota_v2.c:399: warning: unknown conversion type character `z' in
> > > format
> > > fs/quota_v2.c:399: warning: too many arguments for format
> >
> > These are warnings that only occur with gcc 2.95 and that can safely be
> > ignored.
>
> Just wondering, isn't 2.95.3 the recommended compiler anymore? I only use
> this (a bit old) version because it's _the_ compiler for the kernel.
>
> If it still is then I find it a bit strange that code is accepted that
> doesn't compile cleanly on the recommended compiler.
>
gcc-2.95.x requires %Z, not %z. The latter is more correct, and not many
people use gcc-2.95.x, so we'll just have to live with the warnings, I'm
afraid.
I patched my gcc-2.95.4 to understand %z, but seem to have not put the
patch anywhere where I can find it.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/