[Webkit-unassigned] [Bug 177893] New: Disable -Wcast-qual for new clang compiler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 4 13:04:43 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177893

            Bug ID: 177893
           Summary: Disable -Wcast-qual for new clang compiler
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: thorton at apple.com

We need to temporarily disable -Wcast-qual in WebCore for a new clang compiler until a new cast function can be made to do the casts safely (and without using reinterpret_cast<>(const_cast<>()) operators everywhere).

This also turns off the -Wcast-qual warning for one part of RetainPtr<>.

All of these warnings are due to casting a const CFTypeRef (or sometimes a const void*, which is the return type of functions like CFArrayGetValueAtIndex()) to a non-const CFTypeRef in C++ or Objective-C++ code.

<rdar://problem/33667497>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171004/e6cdad99/attachment.html>


More information about the webkit-unassigned mailing list