Closed Bug 666480 Opened 14 years ago Closed 14 years ago

LIR.cpp:286:15: warning: variable ‘priorIns’ set but not used

Categories

(Tamarin Graveyard :: Baseline JIT (CodegenLIR), defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning][fixed-in-nanojit][fixed-in-tracemonkey])

Attachments

(1 file, 1 obsolete file)

gcc-4.6 reports this build warning: js/src/nanojit/LIR.cpp: In member function ‘void nanojit::CfgLister::printGmlCfg(FILE*, nanojit::LInsPrinter*, nanojit::InsSet*)’: js/src/nanojit/LIR.cpp:286:15: warning: variable ‘priorIns’ set but not used [-Wunused-but-set-variable] In the cset that added this variable (for bug 640318)... http://hg.mozilla.org/mozilla-central/rev/ab32afc59a89 ...the variable is only mentioned in 2 places: > LIns* priorIns = 0; // last instruction encountered and (lower down) > priorIns = ins; These lines probably want to just be deleted, right?
Whiteboard: [build_warning]
Attached patch fix (obsolete) — Splinter Review
Attachment #541261 - Flags: review?(wmaddox)
(In reply to comment #0) > These lines probably want to just be deleted, right? Yes, appears to be dead code.
Comment on attachment 541261 [details] [diff] [review] fix This is clearly dead code. R+
Attachment #541261 - Flags: review?(wmaddox) → review+
Thanks -- what's the protocol for Tamarin checkins?
Assignee: nobody → dholbert
Here's the patch with r+ noted, ready to hg [q]import & push.
Attachment #542667 - Flags: review+
Attachment #541261 - Attachment is obsolete: true
Whiteboard: [build_warning] → [build_warning][fixed-in-nanojit]
Whiteboard: [build_warning][fixed-in-nanojit] → [build_warning][fixed-in-nanojit][fixed-in-tracemonkey]
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
changeset: 6476:309d5a15e51b user: Daniel Holbert <dholbert@cs.stanford.edu> summary: Bug 666480: Remove set-but-not-used variable 'priorIns' from LIR.cpp. r=wmaddox http://hg.mozilla.org/tamarin-redux/rev/309d5a15e51b
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: