[cfe-dev] Bug: false positive on -Wmissing-noreturn

Max Kellermann max at duempel.org
Thu Oct 22 01:42:51 PDT 2009


Hi,

I'm using clang from svn trunk r84843.  I'm getting the following
false warning message:

 clang -Wmissing-noreturn -c noreturn.c
 noreturn.c:4:1: warning: function could be attribute 'noreturn'
 [-Wmissing-noreturn]

See attached source code.  It is obvious that the function can return,
since the compiler must not make assumptions on the return values of
foo().

Max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noreturn.c
Type: text/x-csrc
Size: 87 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091022/4916dbc0/attachment.c>


More information about the cfe-dev mailing list