Re: 2.4.9 does not compile [PATCH]

David S. Miller
2001-08-17T03:02:25Z

From: Roman Zippel <zippel@linux-m68k.org>
Date: Fri, 17 Aug 2001 04:53:18 +0200

Most of the time that cast isn't needed and rather an indicator that
something else is wrong, right now we don't even have a chance to detect
such a situation.

Wrong. This is legal:

int test(unsigned long a, int b)
{
return min(a, b);
}

And the compiler will warn about it with your typeof version.
That is dumb and unacceptable.

Later,
David S. Miller
davem@redhat.com