Closed Bug 1377651 Opened 7 years ago Closed 7 years ago

Static variable used in non-static function causes error in vtune

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

(Blocks 1 open bug)

Details

(Whiteboard: [tor])

Attachments

(1 file)

> In file included from /home/worker/workspace/build/src/js/src/vtune/ittnotify_static.c:75:0:
> /home/worker/workspace/build/src/js/src/vtune/ittnotify.h:1831:19: error: '__itt_null' is static but used in inline function '__itt_id_make' which is not static [-Werror]
>      __itt_id id = __itt_null;

This misuse breaks the mingw build.

Because this is in a third party library I suspect that we have no chance of upstreaming a fix in, I'm wondering if the best course of action is to disable -Werror on this file...
Blocks: 1332466
We have already made a few small changes to VTune.

When making those changes, to make sure that they persist across VTune upgrades, we've elected to simply describe the modification to be made in js/src/vtune/README. So it's OK to just make a fix and link to this bug there.
Attachment #8882780 - Flags: review?(sstangl)
Comment on attachment 8882780 [details]
Bug 1377651 Make vtune variable non-static so it may be used in a non-static function

https://reviewboard.mozilla.org/r/153888/#review159608
Attachment #8882780 - Flags: review?(sstangl) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/829264977c95
Make vtune variable non-static so it may be used in a non-static function r=sstangl
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/829264977c95
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: