<html>
<head>
<base href="https://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 --- - Clang Static Analyzer mistakenly believe that a stored value is not read"
href="https://llvm.org/bugs/show_bug.cgi?id=24577">24577</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang Static Analyzer mistakenly believe that a stored value is not read
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.5
</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>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>haneef503@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14775" name="attach_14775" title="check lines 565 and 568">attachment 14775</a> <a href="attachment.cgi?id=14775&action=edit" title="check lines 565 and 568">[details]</a></span>
check lines 565 and 568
The scan-build report states that the assignment (line 565):
err = recvmmsg (s, reqvec, online, 0, &t);
is never read, despite the fact that the very next line of code (line 568):
if (xm_unlikely ((err = -1) && ((errno != EAGAIN) || (errno != EWOULDBLOCK))))
{
check the `err` variable. The macro `xm_unlikely(x)` translates to
`__builtin_expect(!!(x), 0)` and is just used to inform the compiler the the
branch is unlikely to be taken.</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>