[PATCH] NoReturn Warning: Removed Warning for Unreachable Return

Joerg Sonnenberger joerg at britannica.bec.de
Fri Jan 3 11:48:07 PST 2014


On Fri, Jan 03, 2014 at 11:18:18AM -0800, Michael Bao wrote:
> From Bug 10642 (http://llvm.org/bugs/show_bug.cgi?id=10642). 
> 
> If a return statement is unreachable, do not emit the warning stating
> that the function that is declared 'noreturn' should not return. 

Do we have some corresponding dead code warning? I'm not exactly in
favor of this...

Joerg



More information about the cfe-commits mailing list