Bug: false positive on -Wmissing-noreturn

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

noreturn.c (87 Bytes)

Looks like a clang bug please file a bug report. Warning also needs improvement; something like:

'function will not return and is a candidate to be declared with 'noreturn' attribute.
- Fariborz

- Fariborz