[llvm-bugs] [Bug 4802] -Wcast-qual not implemented
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Thu May 11 06:37:25 PDT 2017
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=4802
Roman <lebedev.ri at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |lebedev.ri at gmail.com
         Resolution|FIXED                       |---
--- Comment #4 from Roman <lebedev.ri at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170511/6b541bb2/attachment.html>
    
    
More information about the llvm-bugs
mailing list