Closed
Bug 976750
Opened 11 years ago
Closed 11 years ago
js/src/gc/RootMarking.cpp:251:1: warning: unused function 'MarkWordConservatively' [-Wunused-function]
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
Current mozilla-inbound spams this build warning:
{
js/src/gc/RootMarking.cpp:251:1: warning: unused function 'MarkWordConservatively' [-Wunused-function]
}
Looks like bug 975947 just increased the scope of some #ifndeffing to now be wrapping a caller (in similarly-named "MarkRangeConservatively") that was forrmerly not #ifndefffed:
http://hg.mozilla.org/integration/mozilla-inbound/diff/a278b0807420/js/src/gc/RootMarking.cpp
So before that change, this function was used. Now it's not used, in builds where the #ifndef-protected code is turned off.
Perhaps the #ifndef wants to move up above MarkWordConservatively?
Assignee | ||
Updated•11 years ago
|
Blocks: buildwarning
Version: 28 Branch → Trunk
Assignee | ||
Comment 1•11 years ago
|
||
This moves the #ifndef up to before the "unused" function, as suggested in comment 0.
I verified this fixes my build warning.
I also verified that I can still build with ac_add_options --disable-exact-rooting (which is the build flag that controls this #ifndeffed symbol).
Comment 2•11 years ago
|
||
Comment on attachment 8382756 [details] [diff] [review]
fix v1
Review of attachment 8382756 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks! r=me
Attachment #8382756 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Flags: in-testsuite-
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•