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)
Tamarin Graveyard
Baseline JIT (CodegenLIR)
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)
1.89 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
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?
Assignee | ||
Updated•14 years ago
|
Whiteboard: [build_warning]
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #541261 -
Flags: review?(wmaddox)
Comment 2•14 years ago
|
||
(In reply to comment #0)
> These lines probably want to just be deleted, right?
Yes, appears to be dead code.
Comment 3•14 years ago
|
||
Comment on attachment 541261 [details] [diff] [review]
fix
This is clearly dead code. R+
Attachment #541261 -
Flags: review?(wmaddox) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Thanks -- what's the protocol for Tamarin checkins?
Assignee: nobody → dholbert
Assignee | ||
Comment 5•14 years ago
|
||
Here's the patch with r+ noted, ready to hg [q]import & push.
Attachment #542667 -
Flags: review+
Assignee | ||
Updated•14 years ago
|
Attachment #541261 -
Attachment is obsolete: true
Comment 6•14 years ago
|
||
Whiteboard: [build_warning] → [build_warning][fixed-in-nanojit]
Comment 7•14 years ago
|
||
Whiteboard: [build_warning][fixed-in-nanojit] → [build_warning][fixed-in-nanojit][fixed-in-tracemonkey]
Comment 8•14 years ago
|
||
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/198e53c140cd
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 9•13 years ago
|
||
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.
Description
•