Re: [patch] enums to clear suspend-state confusion

From: Pavel Machek
Date: Thu Aug 19 2004 - 03:21:36 EST


Hi!

> Can you provide an example where the enum patch
> causes gcc to generate a warning for incorrect code?
>
> When I drop the wrong enum into a function,
> gcc seems to eat it just as happily as when
> we used u32's. Maybe I'm missing something.

It will not provide a warning, not for now. Idea was that eventually
sparse could warn or so.

Even with that, it makes it pretty clear for user what is going on,
and hopefully people will actually think before assigning variables
from different enum types.
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
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/