Closed Bug 815056 Opened 13 years ago Closed 12 years ago

Build warning while building jsarray.cpp: "forkjoin.h:158:34: warning: inline function ‘static js::ForkJoinSlice* js::ForkJoinSlice::current()’ used but never defined [enabled by default]"

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [js:t])

Attachments

(1 obsolete file)

Build warning encountered today in my opt m-c build: { In file included from /mozilla/js/src/jsarray.cpp:93:0: Warning: enabled by default in /mozilla/js/src/vm/forkjoin.h: inline function ‘static js::ForkJoinSlice* js::ForkJoinSlice::current()’ used but never defined /mozilla/js/src/vm/forkjoin.h:158:34: warning: inline function ‘static js::ForkJoinSlice* js::ForkJoinSlice::current()’ used but never defined [enabled by default] } Looks like this is from code added a few days ago in bug 801087. The used-but-never-defined function lives in forkjoininlines.h, and in fact it's the only thing in that file. Perhaps forkjoininlines.h should just be merged into forkjoin.h? That, or jsarray.cpp needs to #include forkjoininlines.h
Attached patch fix (obsolete) — Splinter Review
I went with the latter (more conservative) approach from comment 0 -- just including the inlines file in jsarray.cpp. Confirmed that this fixes the warning.
Assignee: general → dholbert
Status: NEW → ASSIGNED
Attachment #686989 - Flags: review?(nmatsakis)
Whiteboard: [js:t]
This is fixed in the patch for 825714 (which has not yet landed)
Depends on: 825714
Attachment #686989 - Attachment is obsolete: true
Attachment #686989 - Flags: review?(nmatsakis)
Looks like bug 825714 has landed, and I don't remember seeing this warning go by recently, so I think this was fixed per comment 2.
Assignee: dholbert → general
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: