Closed
Bug 622647
Opened 15 years ago
Closed 15 years ago
mozJSComponentLoader.cpp:351: warning: ‘nsresult ReadScriptFromStream(JSContext*, nsIObjectInputStream*, JSScript**)’ defined but not used (and same with WriteScriptToStream)
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: dholbert)
Details
(Whiteboard: [build_warning] fixed-in-tracemonkey)
Attachments
(1 file)
1.21 KB,
patch
|
dwitte
:
review+
|
Details | Diff | Splinter Review |
When building mozJSComponentLoader.cpp in a non-libxul build, I get:
../../../../../mozilla/js/src/xpconnect/loader/mozJSComponentLoader.cpp:351: warning: ‘nsresult ReadScriptFromStream(JSContext*, nsIObjectInputStream*, JSScript**)’ defined but not used
../../../../../mozilla/js/src/xpconnect/loader/mozJSComponentLoader.cpp:411: warning: ‘nsresult WriteScriptToStream(JSContext*, JSScript*, nsIObjectOutputStream*)’ defined but not used
These functions are only used once, and their only use is guarded with
#ifdef MOZ_ENABLE_LIBXUL
ever since this cset:
http://hg.mozilla.org/mozilla-central/diff/fa2993d88825/js/src/xpconnect/loader/mozJSComponentLoader.cpp#l1.278
Since these static methods are only used in libxul builds, they only need to be defined in libxul builds. Trivial patch coming up to just guard the definitions with MOZ_ENABLE_LIBXUL (fixing the build warning).
Assignee | ||
Updated•15 years ago
|
Summary: ozJSComponentLoader.cpp:351: warning: ‘nsresult ReadScriptFromStream(JSContext*, nsIObjectInputStream*, JSScript**)’ defined but not used (and same with WriteScriptToStream) → mozJSComponentLoader.cpp:351: warning: ‘nsresult ReadScriptFromStream(JSContext*, nsIObjectInputStream*, JSScript**)’ defined but not used (and same with WriteScriptToStream)
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #500873 -
Flags: review?(dwitte)
Assignee | ||
Updated•15 years ago
|
Severity: normal → trivial
OS: Linux → All
Hardware: x86 → All
Comment 2•15 years ago
|
||
Comment on attachment 500873 [details] [diff] [review]
trivial fix
r=dwitte!
Attachment #500873 -
Flags: review?(dwitte) → review+
Assignee | ||
Comment 3•15 years ago
|
||
Whiteboard: [build_warning] → [build_warning] fixed-in-tracemonkey
Comment 4•15 years ago
|
||
I backed this out because of tinderbox failures.
Whiteboard: [build_warning] fixed-in-tracemonkey → [build_warning]
Assignee | ||
Comment 5•15 years ago
|
||
Re-landed: http://hg.mozilla.org/tracemonkey/rev/294ea1c399f9
(Note that Comment 4 was part of a mass backout -- this particular checkin was almost certainly not responsible for the tinderbox failures)
Whiteboard: [build_warning] → [build_warning] fixed-in-tracemonkey
Assignee | ||
Comment 6•15 years ago
|
||
This landed on mozilla-central as part of a tracemonkey merge a few weeks ago:
http://hg.mozilla.org/mozilla-central/rev/294ea1c399f9
Closing.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•