Ver código fonte

LibJS: Supress an unused bind when wrapping float atomic operations

Tim Schumacher 2 anos atrás
pai
commit
388dc9cc5f

+ 1 - 0
Userland/Libraries/LibJS/Runtime/AtomicsObject.cpp

@@ -107,6 +107,7 @@ static ThrowCompletionOr<Value> perform_atomic_operation(VM& vm, TypedArrayBase&
 
 
     auto operation_wrapper = [&, operation = forward<AtomicFunction>(operation)](ByteBuffer x_bytes, ByteBuffer y_bytes) -> ByteBuffer {
     auto operation_wrapper = [&, operation = forward<AtomicFunction>(operation)](ByteBuffer x_bytes, ByteBuffer y_bytes) -> ByteBuffer {
         if constexpr (IsFloatingPoint<T>) {
         if constexpr (IsFloatingPoint<T>) {
+            (void)operation;
             VERIFY_NOT_REACHED();
             VERIFY_NOT_REACHED();
         } else {
         } else {
             using U = Conditional<IsSame<ClampedU8, T>, u8, T>;
             using U = Conditional<IsSame<ClampedU8, T>, u8, T>;