Closed Bug 795726 Opened 12 years ago Closed 12 years ago

src/jsobj.h:1029:30: warning: inline function ‘js::StringObject& JSObject::asString()’ used but never defined [enabled by default]

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 795765

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

Filing bug on build warning: { In file included from ../../../mozilla/js/src/jsfun.h:14:0, from ../../../mozilla/js/src/vm/Stack.h:11, from ../../../mozilla/js/src/jscntxt.h:33, from ../../../mozilla/js/src/ion/MIR.h:14, from ../../../mozilla/js/src/ion/IonBuilder.h:14, from ../../../mozilla/js/src/ion/MIR.cpp:8: ../../../mozilla/js/src/jsobj.h:1029:30: warning: inline function ‘js::StringObject& JSObject::asString()’ used but never defined [enabled by default] } I'm getting lots of instances of this build warning (tens of instances, at least) -- once per file that includes jsobj.h, probably. The method is declared here: https://mxr.mozilla.org/mozilla-central/source/js/src/jsobj.h?rev=a0853ae2ee0f and it looks like it's defined here: https://mxr.mozilla.org/mozilla-central/source/js/src/vm/StringObject-inl.h?rev=f27c74c5ac80 In a lot of the cases, it looks like it's from things including "MIR.h", which has a call to asString(): https://mxr.mozilla.org/mozilla-central/source/js/src/ion/MIR.h?rev=b6a9cb1be492#5315 ... but MIR.h does not include the header with asString()'s definition. Tentatively assuming that's the issue behind most of these patches. --> tagging bug 794475 (which added that asString() call in MIR.h) as having caused this.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.