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

Konstantin Tokarev annulen at yandex.ru
Fri Sep 13 05:59:24 PDT 2013

13.09.2013, 06:54, "Ryosuke Niwa" <rniwa at webkit.org>:
> 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
> Regardless, I don't think we should have this warning enabled. We're generating some unused code everywhere :(

Actually, this warning (when not false positive) is quite dangerous - program is likely to crash if returned value is used when return-less branch was executed inside called function.


More information about the webkit-dev mailing list