<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - -Wreturn-type regression"
href="http://llvm.org/bugs/show_bug.cgi?id=19074">19074</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-Wreturn-type regression
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ismail@donmez.ws
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Given the following code
#include <stdlib.h>
#define av_assert0(cond) do { \
if (!(cond)) { \
abort(); \
} \
} while (0)
int f(int x) {
switch(x) {
case 0:
return 0;
default:
av_assert0(0);
}
}
int main()
{
}
[/havana/t]> clang --version
clang version 3.4 (branches/release_34 198681)
Target: x86_64-suse-linux
Thread model: posix
[/havana/t]> clang -Wall -Wreturn-type t.c
[/havana/t]>
No warnings. With recent trunk:
[/havana/t]> clang -v
clang version 3.5.0 (trunk 202995)
[/havana/t]> clang -Wall -Wreturn-type t.c
t.c:16:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
So looks like clang is no longer recognizing abort being a __noreturn__
function.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>