<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Fix for bug 5544 does not always work when -Werror is in use"
href="https://bugs.llvm.org/show_bug.cgi?id=9422">bug 9422</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>rnk@google.com
</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 - Fix for bug 5544 does not always work when -Werror is in use"
href="https://bugs.llvm.org/show_bug.cgi?id=9422#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Fix for bug 5544 does not always work when -Werror is in use"
href="https://bugs.llvm.org/show_bug.cgi?id=9422">bug 9422</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>This appears to be fixed. I used this code to check:
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#define FOO(_a) \
(((_a) > 63 && (_a) < 128 ? (((uint64_t) 1)<<((_a)-64)) : (uint64_t) 0))
int
main(int argc, char *argv[])
{
printf("%"PRIx64"\n", FOO(argc));
printf("%"PRIx64"\n", FOO(1));
return EXIT_SUCCESS;
}
Today I get this:
$ clang -c -Weverything clang-shift.c -Werror
clang-shift.c:9:22: error: unused parameter 'argv' [-Werror,-Wunused-parameter]
main(int argc, char *argv[])
^
1 error 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>