[cfe-commits] r112918 - in /cfe/trunk: clang.xcodeproj/project.pbxproj include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaType.cpp test/Analysis/misc-ps.m test/Sema/attr-noreturn.c test/Sema/block-return.c test/Sema/return-noreturn.c test/Sema/return.c test/Sema/warn-unreachable.c test/SemaCXX/attr-noreturn.cpp test/SemaCXX/warn-unreachable.cpp

Chris Lattner clattner at apple.com
Thu Sep 2 21:38:31 PDT 2010


On Sep 2, 2010, at 5:25 PM, Anders Carlsson wrote:

> Author: andersca
> Date: Thu Sep  2 19:25:02 2010
> New Revision: 112918
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=112918&view=rev
> Log:
> Get rid of the "functions declared 'noreturn' should have a 'void' result type" warning.
> 
> The rationale behind this is that it is normal for callback functions to have a non-void return type
> and it should still be possible to mark them noreturn. (JavaScriptCore is a good example of this).

Hey Anders,

I'm not necessarily opposed to this change, but how exactly is this useful?

-Chris



More information about the cfe-commits mailing list