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)
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
| Reporter | ||
Comment 1•13 years ago
|
||
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.
Updated•13 years ago
|
Whiteboard: [js:t]
Comment 2•13 years ago
|
||
This is fixed in the patch for 825714 (which has not yet landed)
| Reporter | ||
Updated•12 years ago
|
Attachment #686989 -
Attachment is obsolete: true
Attachment #686989 -
Flags: review?(nmatsakis)
| Reporter | ||
Comment 3•12 years ago
|
||
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.
Description
•