Closed Bug 1476009 Opened 2 years ago Closed 2 years ago

[Static Analysis] DEAD_STORE error in storage/mozStorageHelper.h

Categories

(Toolkit :: Storage, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: rbartlensky, Assigned: rbartlensky)

References

Details

Attachments

(1 file)

storage/mozStorageHelper.h:157: error: DEAD_STORE
  The value written to &rv (type int) is never used.
  155.       // TODO (bug 1062823): from Sqlite 3.7.11 on, rollback won't ever return
  156.       // a busy error, so this handling can be removed.
  157. >     nsresult rv = NS_OK;
  158.       do {
  159.         rv = mConnection->ExecuteSimpleSQL(NS_LITERAL_CSTRING("ROLLBACK"));
Comment on attachment 8992391 [details]
Bug 1476009: Remove unnecessary initialization.

https://reviewboard.mozilla.org/r/257266/#review264340
Attachment #8992391 - Flags: review?(mak77) → review+
Keywords: checkin-needed
Pushed by aiakab@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/44fd25e3d484
Remove unnecessary initialization. r=mak
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/44fd25e3d484
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.