Open Quuxplusone opened 12 years ago
Bugzilla Link | PR11542 |
Status | NEW |
Importance | P enhancement |
Reported by | Ed Schouten (ed@80386.nl) |
Reported on | 2011-12-12 03:35:31 -0800 |
Last modified on | 2011-12-13 03:32:59 -0800 |
Version | 3.0 |
Hardware | PC FreeBSD |
CC | efriedma@quicinc.com, kremenek@apple.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Stated differently; in theory (disregarding things like in-line assembly, the halting problem, etc) there should be no need at all to add attribute((noreturn)) to any static function. It should be able to derive this information from the call graph.
It must be noted that it also raises this warning for pieces of code like the
following:
static void
foo(void)
{
for (;;);
}
int
f(void)
{
foo();
}