WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
177893
Disable -Wcast-qual for new clang compiler in Apple ports
https://bugs.webkit.org/show_bug.cgi?id=177893
Summary
Disable -Wcast-qual for new clang compiler in Apple ports
David Kilzer (:ddkilzer)
Reported
2017-10-04 13:04:43 PDT
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
>
Attachments
Patch v1
(3.73 KB, patch)
2017-10-04 13:52 PDT
,
David Kilzer (:ddkilzer)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2017-10-04 13:52:37 PDT
Created
attachment 322715
[details]
Patch v1
WebKit Commit Bot
Comment 2
2017-10-05 12:12:08 PDT
Comment on
attachment 322715
[details]
Patch v1 Clearing flags on attachment: 322715 Committed
r222928
: <
http://trac.webkit.org/changeset/222928
>
WebKit Commit Bot
Comment 3
2017-10-05 12:12:10 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 4
2017-10-07 13:33:59 PDT
(In reply to David Kilzer (:ddkilzer) from
comment #0
)
> 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.
I’d really like to get this turned back on. Is someone working on the new cast?
David Kilzer (:ddkilzer)
Comment 5
2017-10-11 11:09:51 PDT
(In reply to Darin Adler from
comment #4
)
> (In reply to David Kilzer (:ddkilzer) from
comment #0
) > > 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. > > I’d really like to get this turned back on. Is someone working on the new > cast?
It's being tracked here:
Bug 177895
: Re-enable -Wcast-qual for Apple ports
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug