Re: [IDEA+RFC] Possible solution for min()/max() war

Roman Zippel (zippel@linux-m68k.org)
Fri, 31 Aug 2001 14:01:22 +0200 (CEST)


Hi,

On Fri, 31 Aug 2001, Peter T. Breuer wrote:

> if (sizeof(_x) != sizeof(_y)) \
> MIN_BUG(); \

What bug are you trying to fix here?

> int main() {
> unsigned i = 1;
> signed j = -2;
> return MIN(i,j);
> }

Try -Wsign-compare.

bye, Roman

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/