No bug - Fix warning spam, r=shu.

This commit is contained in:
Brian Hackett 2013-04-11 16:25:43 -06:00
parent c0dddd8180
commit 3ee89269e4

View File

@ -242,16 +242,18 @@ struct ForkJoinOp
// Locks a JSContext for its scope. // Locks a JSContext for its scope.
class LockedJSContext class LockedJSContext
{ {
#if defined(JS_THREADSAFE) && defined(JS_ION)
ForkJoinSlice *slice_; ForkJoinSlice *slice_;
#endif
JSContext *cx_; JSContext *cx_;
public: public:
LockedJSContext(ForkJoinSlice *slice) LockedJSContext(ForkJoinSlice *slice)
: slice_(slice),
#if defined(JS_THREADSAFE) && defined(JS_ION) #if defined(JS_THREADSAFE) && defined(JS_ION)
: slice_(slice),
cx_(slice->acquireContext()) cx_(slice->acquireContext())
#else #else
cx_(NULL) : cx_(NULL)
#endif #endif
{ } { }