https://bugs.llvm.org/show_bug.cgi?id=4802
Roman <lebedev...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |lebedev...@gmail.com
Resolution|FIXED |---
--- Comment #4 from Roman <lebedev...@gmail.com> ---
(In reply to Timo Sirainen from comment #0)
> int main(void)
> {
> const char *x = 0;
> char *y = (char *)x;
> return 0;
> }
>
> gcc -Wcast-qual warns:
>
> test.c:4: warning: cast discards qualifiers from pointer target type
>
> clang warns nothing.
clang-4.0 still does not warn on that.
https://godbolt.org/g/3SEdPm
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs