Closed Bug 620360 Opened 14 years ago Closed 14 years ago

Fix unused variable warning in StatementCache::FinalizeCachedStatements

Categories

(Toolkit :: Places, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b9

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file, 2 obsolete files)

Attached patch Patch v1 (obsolete) — Splinter Review
Since bug 599969, rv has been unused in opt builds.
Flags: in-testsuite-
Attachment #498720 - Flags: review?(sdwilsh)
Comment on attachment 498720 [details] [diff] [review]
Patch v1

>-    nsresult rv = aStatement->Finalize();
>+#ifdef DEBUG
>+    nsresult rv =
>+#endif
>+    aStatement->Finalize();
>     NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Finalizing statement failed!");
It's actually silly to warn since storage code will also warn.  Just change the line to :
(void)aStatement->Finalize();

r=sdwilsh with that change.
Attachment #498720 - Flags: review?(sdwilsh) → review+
Attached patch Patch v2 (obsolete) — Splinter Review
Thanks.
Attachment #498720 - Attachment is obsolete: true
Attachment #498743 - Flags: approval2.0?
Attachment #498743 - Flags: approval2.0? → approval2.0+
Attachment #498743 - Attachment is obsolete: true
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/c544c99fad5a
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: