Closed
Bug 1012971
Opened 10 years ago
Closed 10 years ago
Fix warnings
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: sunfish, Assigned: sunfish)
Details
Attachments
(2 files)
22.33 KB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
1.77 KB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
The attached patches fix several compiler warnings in js and mfbt: meaningless qualifiers on return types, unused variables, format string characters, signed vs unsigned comparisons.
Attachment #8425126 -
Flags: review?(nicolas.b.pierron)
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8425129 -
Flags: review?(nicolas.b.pierron)
Updated•10 years ago
|
Attachment #8425129 -
Flags: review?(nicolas.b.pierron) → review+
Comment 2•10 years ago
|
||
Comment on attachment 8425126 [details] [diff] [review] fix-warnings.patch Review of attachment 8425126 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jit/IonFrames.h @@ +732,5 @@ > > friend struct IonDOMMethodExitFrameLayoutTraits; > > public: > + static JitCode *Token() { return (JitCode *)0x3; } Why aren't these static constant? ::: js/src/jit/MIR.h @@ +8525,5 @@ > { > return new(alloc) MSetDOMProperty(func, obj, val); > } > > + JSJitSetterOp fun() { nit: add a const between ) and { @@ +8592,5 @@ > { > return new(alloc) MGetDOMProperty(info, obj, guard); > } > > + JSJitGetterOp fun() { nit: idem
Attachment #8425126 -
Flags: review?(nicolas.b.pierron) → review+
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Nicolas B. Pierron [:nbp] from comment #2) > Comment on attachment 8425126 [details] [diff] [review] > fix-warnings.patch > > Review of attachment 8425126 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: js/src/jit/IonFrames.h > @@ +732,5 @@ > > > > friend struct IonDOMMethodExitFrameLayoutTraits; > > > > public: > > + static JitCode *Token() { return (JitCode *)0x3; } > > Why aren't these static constant? Previously the return type was "JitCode *const". This says the function's return value JitCode* itself is const. const isn't meaningful on a non-reference return type. > ::: js/src/jit/MIR.h > @@ +8525,5 @@ > > { > > return new(alloc) MSetDOMProperty(func, obj, val); > > } > > > > + JSJitSetterOp fun() { > > nit: add a const between ) and { Fixed. > @@ +8592,5 @@ > > { > > return new(alloc) MGetDOMProperty(info, obj, guard); > > } > > > > + JSJitGetterOp fun() { > > nit: idem Fixed. https://hg.mozilla.org/integration/mozilla-inbound/rev/fab2921f6306 https://hg.mozilla.org/integration/mozilla-inbound/rev/55b109739287
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/fab2921f6306 https://hg.mozilla.org/mozilla-central/rev/55b109739287
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•