Bug 42464

Summary: Really add WARN_UNUSED_RESULT to leakRef
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, levin, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch levin: review+

Anders Carlsson
Reported 2010-07-16 09:52:23 PDT
Really add WARN_UNUSED_RESULT to leakRef and leakPtr
Attachments
Patch (5.31 KB, patch)
2010-07-16 10:00 PDT, Anders Carlsson
levin: review+
Anders Carlsson
Comment 1 2010-07-16 10:00:22 PDT
WebKit Review Bot
Comment 2 2010-07-16 10:01:34 PDT
Attachment 61819 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 JavaScriptCore/wtf/PassRefPtr.h:155: More than one command on the same line [whitespace/newline] [4] JavaScriptCore/wtf/RetainPtr.h:74: More than one command on the same line [whitespace/newline] [4] Total errors found: 2 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
David Levin
Comment 3 2010-07-16 10:21:47 PDT
Comment on attachment 61819 [details] Patch > diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog > + * wtf/RetainPtr.h: > + (WTF::RetainPtr::releaseRef): > + Remove WARN_UNUSED_RESULT here for now, it leads to two warnings that need > + to be fixed first. fwiw, you appear to only have fixed one of them.
Anders Carlsson
Comment 4 2010-07-16 10:28:53 PDT
(In reply to comment #3) > (From update of attachment 61819 [details]) > > diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog > > + * wtf/RetainPtr.h: > > + (WTF::RetainPtr::releaseRef): > > + Remove WARN_UNUSED_RESULT here for now, it leads to two warnings that need > > + to be fixed first. > > fwiw, you appear to only have fixed one of them. I fixed the single RefPtr leakRef warning. There are two RetainPtr leakPtr calls that I would need to fix first before adding back WARN_UNUSED_RESULT on RetainPtr.
Anders Carlsson
Comment 5 2010-07-16 10:47:20 PDT
David Levin
Comment 6 2010-07-16 10:49:33 PDT
(In reply to comment #4) > (In reply to comment #3) > > (From update of attachment 61819 [details] [details]) > > > diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog > > > + * wtf/RetainPtr.h: > > > + (WTF::RetainPtr::releaseRef): > > > + Remove WARN_UNUSED_RESULT here for now, it leads to two warnings that need > > > + to be fixed first. > > > > fwiw, you appear to only have fixed one of them. > > I fixed the single RefPtr leakRef warning. There are two RetainPtr leakPtr calls that I would need to fix first before adding back WARN_UNUSED_RESULT on RetainPtr. Of course, you said it right there. Sorry about that.
WebKit Review Bot
Comment 7 2010-07-16 12:43:07 PDT
Note You need to log in before you can comment on or make changes to this bug.