Closed Bug 1443727 Opened 6 years ago Closed 6 years ago

[MIPS] Fix miscellaneous build warnings

Categories

(Core :: JavaScript Engine, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: dragan.mladjenovic, Assigned: dragan.mladjenovic)

Details

Attachments

(1 file)

      No description provided.
Attached patch bug1443727.patchSplinter Review
Assignee: nobody → dragan.mladjenovic
Attachment #8956728 - Flags: review?(bbouvier)
Comment on attachment 8956728 [details] [diff] [review]
bug1443727.patch

Review of attachment 8956728 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/jit/mips-shared/Assembler-mips-shared.h
@@ +892,5 @@
>  
>      MIPSBufferWithExecutableCopy m_buffer;
>  
> +#ifdef JS_JITSPEW
> +   Sprinter* printer;

What warning does this change silence?
Priority: -- → P5
(In reply to Jason Orendorff [:jorendorff] from comment #2)
> Comment on attachment 8956728 [details] [diff] [review]
> bug1443727.patch
> 
> Review of attachment 8956728 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: js/src/jit/mips-shared/Assembler-mips-shared.h
> @@ +892,5 @@
> >  
> >      MIPSBufferWithExecutableCopy m_buffer;
> >  
> > +#ifdef JS_JITSPEW
> > +   Sprinter* printer;
> 
> What warning does this change silence?

warning: field 'm_buffer' will be initialized after field 'printer' [-Wreorder]
Comment on attachment 8956728 [details] [diff] [review]
bug1443727.patch

Review of attachment 8956728 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks.

::: js/src/jit/mips-shared/Assembler-mips-shared.h
@@ +892,5 @@
>  
>      MIPSBufferWithExecutableCopy m_buffer;
>  
> +#ifdef JS_JITSPEW
> +   Sprinter* printer;

Probably this printer is unused in non JS_JITSPEW builds? (not sure the compiler could infer this, though)
Attachment #8956728 - Flags: review?(bbouvier) → review+
Keywords: checkin-needed
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cba4601c84f0
[MIPS] Fix miscellaneous build warnings r=bbouvier
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/cba4601c84f0
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: