Closed Bug 1126408 Opened 9 years ago Closed 9 years ago

prfdcach.c:216:18: warning: unused variable 'pop' [-Wunused-variable]

Categories

(NSPR :: NSPR, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

New build warning, noticed when building mozilla-central after recent NSPR uplift:
{
pr/src/io/prfdcach.c:216:18: warning: unused variable 'pop' [-Wunused-variable]
}

The last usage of this variable was removed in bug 573192, at the very bottom of this commit: http://hg.mozilla.org/projects/nspr/rev/84acbf6789fb#l1.190

So, the variable itself can go away.
Attached patch fix v1Splinter Review
Here's the patch (with extra lines of context, to prove that the variable is indeed unused).
Attachment #8555373 - Flags: review?(nfroyd)
Comment on attachment 8555373 [details] [diff] [review]
fix v1

Review of attachment 8555373 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you for the extra context lines!  Maybe we won't have to do this sort of thing when ReviewBoard hits.
Attachment #8555373 - Flags: review?(nfroyd) → review+
[needinfo=ted to land this. Thanks in advance!]
Flags: needinfo?(ted)
I landed this, but in hindsight is froydnj actually an NSPR peer? It's a trivial change so I'm not stressed about it.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(ted)
Resolution: --- → FIXED
I just tagged him to review it because he wrote the patch that made this variable unused (bug 573192) -- this is a (trivial) logical extension of that patch (and in a perfect world, it would have been part of his already-reviewed-by-an-nspr-peer bug 573192 patch). 

Thanks for landing, & sorry if that technically violated the review protocol -- I figured it was trivial enough that it wasn't worth worrying about. :)
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #5)
> I landed this, but in hindsight is froydnj actually an NSPR peer?

Just as long as people don't start taking this as precedent!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: