[webkit-dev] Can we disable "control reaches end of non-void function" warning on Qt?

Darin Adler darin at apple.com
Fri Sep 13 10:40:32 PDT 2013


On Sep 13, 2013, at 10:36 AM, Oliver Hunt <oliver at apple.com> wrote:

> I guess there's no nice automate-able to handle everything magically.

We could require either default: or DEFAULT_NOT_REACHED at ends of switches. To use DEFAULT_NOT_REACHED after a switch the cases need to use return, not break. I’m sure we can teach the style checker to check this if we decide it’s the rule.

-- Darin


More information about the webkit-dev mailing list