Enable -Wunused-variables
[folly.git] / folly / RWSpinLock.h
index 6a5436dc69dfd639d837af1e4b936ba6eb3739af..3cce0d90603ef02b1dafec7ac5581279a1d020d4 100644 (file)
@@ -678,7 +678,7 @@ class RWTicketSpinLockT {
   }
 
   void unlock_shared() {
-    QuarterInt val = __sync_fetch_and_add(&ticket.write, 1);
+    __sync_fetch_and_add(&ticket.write, 1);
   }
 
   class WriteHolder;