[webkit-dev] Can we disable "control reaches end of non-void function" warning on Qt?
Benjamin Poulain
benjamin at webkit.org
Thu Sep 12 20:55:06 PDT 2013
On 9/12/13 8:46 PM, Filip Pizlo wrote:
> On Sep 12, 2013, at 7:54 PM, Ryosuke Niwa <rniwa at webkit.org
> <mailto:rniwa at webkit.org>> wrote:
>
>> Hm... it appears that I was wrong about this. It appears that this
>> is the intended feature in gcc:
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28236
>
> Yuck! Madness!
>
>>
>> Regardless, I don't think we should have this warning enabled. We're
>> generating some unused code everywhere :(
>
> :-(
>
> Yes, we could say that the warning is disabled in gcc and enabled in
> clang. I'm not sure that's fair, though. We do all sorts of strange
> things to silence clang sometimes; it's only fair that once in a while
> we do things to silence gcc. So unless we say that WebKit should only
> be developed on clang, we should probably agree to sometimes silence
> gcc's peculiarities.
+1
Since it is not a compiler bug, I agree we should accommodate for this
behavior.
Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130912/046feba6/attachment.html>
More information about the webkit-dev
mailing list