Closed Bug 888352 Opened 11 years ago Closed 11 years ago

History.cpp:2716:48: warning: value computed is not used [-Wunused-value]

Categories

(Toolkit :: Places, defect)

24 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25
Tracking Status
firefox24 --- affected

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

New build warning: toolkit/components/places/History.cpp:2716:48: warning: value computed is not used [-Wunused-value] *placesInfo.AppendElement(VisitData(uri)); ^ I believe it's telling us that the "*" there is useless. (We're dereferencing the return value of AppendElement, and then not doing anything with the result.) This line was added here: http://hg.mozilla.org/mozilla-central/rev/734147446def#l3.942 for bug 834539.
This was likely just a copypaste remnant from this other line: VisitData& placeInfo = *placesInfo.AppendElement(VisitData()); a few lines higher up (where we dereference and then *do* use the result).
Attached patch fix v1 (deleted) — Splinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #769012 - Flags: review?
Attachment #769012 - Flags: review? → review?(mano)
OS: Linux → All
Hardware: x86_64 → All
Version: unspecified → Trunk
Comment on attachment 769012 [details] [diff] [review] fix v1 Review of attachment 769012 [details] [diff] [review]: ----------------------------------------------------------------- thanks!
Attachment #769012 - Flags: review?(mano) → review+
Landed: https://hg.mozilla.org/integration/mozilla-inbound/rev/fdf7cf309750 ...but that had the wrong reviewer in the commit message (I didn't notice in my bugmail that it was mak instead of mano who r+'d it), so I backed out and relanded (as DONTBUILD) to update the commit message: backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/6f996afe0d61 re-land: https://hg.mozilla.org/integration/mozilla-inbound/rev/d28947c37c8f
Flags: in-testsuite-
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Keywords: regression
Version: Trunk → 24 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: