<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:nicholas@mxc.ca" title="Nick Lewycky <nicholas@mxc.ca>"> <span class="fn">Nick Lewycky</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - No warning for unused computed values in comma expressions"
href="https://llvm.org/bugs/show_bug.cgi?id=18561">bug 18561</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>nicholas@mxc.ca
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - No warning for unused computed values in comma expressions"
href="https://llvm.org/bugs/show_bug.cgi?id=18561#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - No warning for unused computed values in comma expressions"
href="https://llvm.org/bugs/show_bug.cgi?id=18561">bug 18561</a>
from <span class="vcard"><a class="email" href="mailto:nicholas@mxc.ca" title="Nick Lewycky <nicholas@mxc.ca>"> <span class="fn">Nick Lewycky</span></a>
</span></b>
<pre>It's -Wcomma in clang.
$ llvm-commit/build/bin/clang pr18561.cc -Wcomma -fsyntax-only
pr18561.cc:4:20: warning: possible misuse of comma operator here [-Wcomma]
return (f() && a), 1;
^
pr18561.cc:4:10: note: cast expression to void to silence warning
return (f() && a), 1;
^~~~~~~~~~
static_cast<void>( )
1 warning generated.</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>