[parted-devel] eliminating switch vs. enum warnings

Debarshi Ray debarshi.ray at gmail.com
Fri Feb 16 00:15:43 CET 2007


> Add a "PED_ASSERT(0, (void)0)"?
> or don't bother and just add the "default: break;"?

I prefer the PED_ASSERT (0, (void) 0), since it clearly states that a
error had occured.

Happy hacking,
Debarshi
-- 
After the game the king and the pawn go into the same box.
                -- Italian proverb



More information about the parted-devel mailing list