mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
No bug - Fix warning spam, r=shu.
This commit is contained in:
parent
c0dddd8180
commit
3ee89269e4
@ -242,16 +242,18 @@ struct ForkJoinOp
|
||||
// Locks a JSContext for its scope.
|
||||
class LockedJSContext
|
||||
{
|
||||
#if defined(JS_THREADSAFE) && defined(JS_ION)
|
||||
ForkJoinSlice *slice_;
|
||||
#endif
|
||||
JSContext *cx_;
|
||||
|
||||
public:
|
||||
LockedJSContext(ForkJoinSlice *slice)
|
||||
: slice_(slice),
|
||||
#if defined(JS_THREADSAFE) && defined(JS_ION)
|
||||
: slice_(slice),
|
||||
cx_(slice->acquireContext())
|
||||
#else
|
||||
cx_(NULL)
|
||||
: cx_(NULL)
|
||||
#endif
|
||||
{ }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user