WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
150173
[WK2] Simplify unused return warning in WKRetainPtr.h
https://bugs.webkit.org/show_bug.cgi?id=150173
Summary
[WK2] Simplify unused return warning in WKRetainPtr.h
Csaba Osztrogonác
Reported
2015-10-15 09:02:04 PDT
http://trac.webkit.org/changeset/159788/trunk/Source/WebKit2/UIProcess/API/cpp/WKRetainPtr.h
added (copy/pasted) a complex definition to do it without including Compiler.h from WTF. But now WARN_UNUSED is defined to __attribute__((__warn_unused_result__)) if the compiler is GCC or Clang. But it is a WebKit2 file, I don't know if any other compiler is supported.
http://trac.webkit.org/browser/trunk/Source/WTF/wtf/Compiler.h#L308
I think we can simply use __attribute__((__warn_unused_result__)) unconditionally.
Attachments
Patch
(1.63 KB, patch)
2015-10-15 09:04 PDT
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
Patch
(1.68 KB, patch)
2015-10-15 09:11 PDT
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2015-10-15 09:04:22 PDT
Created
attachment 263163
[details]
Patch
Csaba Osztrogonác
Comment 2
2015-10-15 09:11:17 PDT
Created
attachment 263164
[details]
Patch
Csaba Osztrogonác
Comment 3
2015-10-19 00:08:47 PDT
Comment on
attachment 263164
[details]
Patch Clearing flags on attachment: 263164 Committed
r191279
: <
http://trac.webkit.org/changeset/191279
>
Csaba Osztrogonác
Comment 4
2015-10-19 00:08:54 PDT
All reviewed patches have been landed. Closing bug.
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