-Wswitch vs -Wuninitialized

Richard Henderson rth@redhat.com
Mon Nov 20 21:07:00 GMT 2000


On Tue, Nov 21, 2000 at 11:11:01AM +1100, Andrew Cagney wrote:
> I take it that no one has looked at a way of allowing -Wswitch to
> still report a forgotten enum when something like ``default: abort()''
> is present.

No, since most times that would defeat the purpose of the default.
GCC uses enumerations with _hundreds_ of entries.  There's no way
we can list them all explicitly in such cases.


r~


More information about the Gcc mailing list