Re: [PATCH] fix warning about duplicate 'const'

From: Thomas Schlichter
Date: Mon Mar 08 2004 - 20:19:45 EST

Am Dienstag, 9. März 2004 01:32 schrieb Linus Torvalds:

~~ snip ~~

> The warnings the extra "const" fixes is something like:
> int a;
> const int b;
> min(a,b)
> where otherwise it would complain about pointers to different types when
> comparing the type of the pointer. Or something.

OK, I tested it and gcc 3.3.1 does not complain about this. So with my patch,
the duplicate 'const' warning goes away here and no other warning occours...

But I don't know how other versions of gcc behave...


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at