Closed Bug 727686 Opened 12 years ago Closed 12 years ago

xpcom/tests/TestDeque.cpp:55:19: warning: ‘sTestDeque’ defined but not used [-Wunused-variable]

Categories

(Core :: XPCOM, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

xpcom/tests/TestDeque.cpp:55:19: warning: ‘sTestDeque’ defined but not used [-Wunused-variable]

This variable is declared as
> 55 static _TestDeque sTestDeque;

It was added in bug 137495, but it was never used, even in the patch that added it.

It looks like this file declares another _TestDeque object inside of main(), and that's the object that it actually uses.
Attached patch fix v1Splinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #597639 - Flags: review?(timeless)
Severity: normal → trivial
OS: Linux → All
Hardware: x86_64 → All
Blocks: buildwarning
(Note: this test has apparently been disabled for a while, and it was recently re-enabled here:
 http://hg.mozilla.org/mozilla-central/diff/6012abe637a8/xpcom/tests/Makefile.in
)
Comment on attachment 597639 [details] [diff] [review]
fix v1

(bouncing r? to cpearce, since he touched this test in the last month rather than ~10 years ago. :)  timeless, feel free to steal review back if you happen to get to it first.)
Attachment #597639 - Flags: review?(timeless) → review?(cpearce)
Comment on attachment 597639 [details] [diff] [review]
fix v1

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

Rubber Stamp Engaged.
Attachment #597639 - Flags: review?(cpearce) → review+
https://hg.mozilla.org/mozilla-central/rev/6d7033dc6480
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: