Bug 150173

Summary: [WK2] Simplify unused return warning in WKRetainPtr.h
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, mitz, ossy
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

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
Patch (1.68 KB, patch)
2015-10-15 09:11 PDT, Csaba Osztrogonác
no flags
Csaba Osztrogonác
Comment 1 2015-10-15 09:04:22 PDT
Csaba Osztrogonác
Comment 2 2015-10-15 09:11:17 PDT
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.