I hacked up a cheap version of a warning for defaults in switches that
already cover all cases in an enum (the warning is in excess_default.diff -
given some discussion with Chandler on IRC I don't think we consider this to
be sufficiently high quality to be checked in, but I wouldn't mind some
other opinions/thoughts (the issue was that it might need to use the CFG to
ensure that it's not reachable via loops nested in the switch or gotos,
fallthroughs etc)) and I found/fixed the following cases
(excess_default_fixes.diff)

Attachment: excess_default.diff
Description: Binary data


Attachment: excess_default_fixes.diff
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to