Re: __attribute__((unused))

From: Alan Cox
Date: Fri Oct 15 2004 - 08:42:15 EST


On Iau, 2004-10-14 at 23:08, Russell King wrote:
> It's the "later compilers" which I'm worried about here - I think they
> defined "unused" to mean "this really really isn't used and you can
> discard it". Hence my concern with the above.

This was the explanation I got some time ago

-- quote --

So "used" cases that used "unused" could break, though older compilers
in essence used "unused" to mean both "used" and "unused". Since
"unused" becomes useless for using in "used" cases, we now must be sure
to use "used" when that's the use that's useful.
-- Roland McGrath


I found it so helpful it became a .sig 8)

-
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/