[Webkit-unassigned] [Bug 239290] Misc compiler warnings, April 2022 edition

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 19 10:02:59 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=239290

--- Comment #7 from Yusuke Suzuki <ysuzuki at apple.com> ---
(In reply to Michael Catanzaro from comment #6)
> ack, thanks for catching it! How scary. :(
> 
> It will happen again in the future, though, because I can't know where these
> areas may be, and we keep introducing more and more return type warnings.
> These make up probably >50% of the GCC warnings that I deal with.
> 
> One option is to give up and build with -Wno-return-type, because fixing up
> switch statements is getting pretty old. But sadly, it does seem like a
> useful warning except for this pattern with switch statements, so I'm a bit
> hesitant to do that.

Can GCC have a mechanism like this? I think it can suppress most of false positives.

1. emitting this warning for normal enum case
2. not emitting this for strongly scoped enum when switch handles all scoped enums

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220419/39af349f/attachment.htm>


More information about the webkit-unassigned mailing list