Messages in this thread | | | Date | Fri, 31 Aug 2001 18:57:11 +0200 | From | Roman Zippel <> | Subject | Re: [IDEA+RFC] Possible solution for min()/max() war |
| |
Hi,
ctm@ardi.com wrote:
> I don't maintain any linux kernel code, so I'm not lobbying for this > particular solution. I just don't think Linus's example is _good_ > code. I think it's correct, but misleading, code.
True, but the only argument I heard from Linus lately is, how bad Wsign-compare is. It's not that difficult to prove that gcc produces false warnings, even if it has the information to know better. That's not the point. What started the discussion is that Linus introduced a new version of min/max macros. I brought up arguments, why I think these macros are unsafe and I got no response to this. I made the mistake of mentioning -Wsign-compare and I get a long explanation instead, how bad it is. In the meantime people are trying to fix bugs without defining them, ignoring the fact that there are already tools, which can help finding real bugs. If the tool is too coarse, use it only from time to time or use a different tool.
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/
| |