[llvm-bugs] [Bug 9422] Fix for bug 5544 does not always work when -Werror is in use
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 21 13:52:01 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=9422
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rnk at google.com
Resolution|--- |FIXED
--- Comment #3 from Reid Kleckner <rnk at google.com> ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190221/f3e8158b/attachment-0001.html>
More information about the llvm-bugs
mailing list