mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 624205: fix warning due to mismatched export declarations on MarkContext.
This commit is contained in:
parent
aed4f14946
commit
4329aad018
@ -2282,7 +2282,7 @@ class AutoGCRooter {
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC visibility push(default)
|
||||
#endif
|
||||
friend void MarkContext(JSTracer *trc, JSContext *acx);
|
||||
friend JS_FRIEND_API(void) MarkContext(JSTracer *trc, JSContext *acx);
|
||||
friend void MarkRuntime(JSTracer *trc);
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC visibility pop
|
||||
|
@ -1609,7 +1609,7 @@ AutoGCRooter::trace(JSTracer *trc)
|
||||
|
||||
namespace js {
|
||||
|
||||
void
|
||||
JS_FRIEND_API(void)
|
||||
MarkContext(JSTracer *trc, JSContext *acx)
|
||||
{
|
||||
/* Stack frames and slots are traced by StackSpace::mark. */
|
||||
|
@ -1626,7 +1626,7 @@ class TraceRecorder
|
||||
* could lazily resolve. Since resolving adds properties to
|
||||
* reserved slots, the tracer will never have imported them.
|
||||
*/
|
||||
return tree->globalSlots->offsetOf(nativeGlobalSlot(vp)) == -1;
|
||||
return tree->globalSlots->offsetOf((uint16)nativeGlobalSlot(vp)) == -1;
|
||||
}
|
||||
pendingGlobalSlotToSet = -1;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user