js::atomics_wait: Remove unnecessary parentheses in declaration of 'addr'

Silences a warning with GCC 8.
This commit is contained in:
trav90 2018-08-10 14:44:03 -05:00 committed by Roy Tam
commit 6fe56d9f39

View file

@ -789,7 +789,7 @@ js::atomics_wait(JSContext* cx, unsigned argc, Value* vp)
// and it provides the necessary memory fence.
AutoLockFutexAPI lock;
SharedMem<int32_t*>(addr) = view->viewDataShared().cast<int32_t*>() + offset;
SharedMem<int32_t*> addr = view->viewDataShared().cast<int32_t*>() + offset;
if (jit::AtomicOperations::loadSafeWhenRacy(addr) != value) {
r.setString(cx->names().futexNotEqual);
return true;