Messages in this thread | | | Date | Mon, 11 Aug 2003 19:46:50 +0100 | From | Dave Jones <> | Subject | Re: [PATCH] Remove useless assertions from reiserfs |
| |
On Mon, Aug 11, 2003 at 08:33:13PM +0200, Petr Vandrovec wrote:
> I always thought that assertions are just for that - if you can hit them > without some unexpected event/bug, you have a SERIOUS problem.
Not for when you explicitly code things above so it really cannot happen. An assertion is more for the case "I really hope someone doesn't pass me x in state y" type assertions than "I really hope the compiler did the right thing with the previous loop"
Dave
-- Dave Jones http://www.codemonkey.org.uk - 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/
| |