Closed
Bug 857250
Opened 12 years ago
Closed 12 years ago
GCC 4.8 warning: Ion.cpp:321:39: warning: typedef 'MoveOperand' locally defined but not used [-Wunused-local-typedefs]
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
834 bytes,
patch
|
dvander
:
review+
|
Details | Diff | Splinter Review |
js/src/ion/Ion.cpp:321:39: warning: typedef 'MoveOperand' locally defined but not used [-Wunused-local-typedefs]
The warning is for this chunk of code:
318 IonCode *
319 IonCompartment::getVMWrapper(const VMFunction &f)
320 {
321 typedef MoveResolver::MoveOperand MoveOperand;
322
323 JS_ASSERT(rt->functionWrappers_);
324 JS_ASSERT(rt->functionWrappers_->initialized());
325 IonRuntime::VMWrapperMap::Ptr p = rt->functionWrappers_->readonlyThreadsafeLookup(&f);
326 JS_ASSERT(p);
327
328 return p->value;
329 }
https://mxr.mozilla.org/mozilla-central/source/js/src/ion/Ion.cpp#318
hg blame says this typedef was added here:
https://hg.mozilla.org/mozilla-central/rev/6ba78023b367#l2.189
and it looks like it was already unused at the time. (Probably just copypasted boilerplate or something.)
Anyway, looks like it can be removed.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: general → dholbert
Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 732467 [details] [diff] [review]
fix: remove typedef
Oops, apparently I forgot to request review.
Attachment #732467 -
Flags: review?(dvander)
![]() |
||
Updated•12 years ago
|
Attachment #732467 -
Flags: review?(dvander) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Flags: in-testsuite-
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•