Fix Wunused-but-set-variable warnings

Change-Id: I0e093fd35b11e9a765ef9c09f3b6346086ff66bf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/435983
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/bench/ScalarBench.cpp b/bench/ScalarBench.cpp
index 68c0884..9148532 100644
--- a/bench/ScalarBench.cpp
+++ b/bench/ScalarBench.cpp
@@ -59,7 +59,7 @@
     int mulLoopCount() const override { return 4; }
     void performTest() override {
         // xoring into a volatile prevents the compiler from optimizing these checks away.
-        volatile bool junk = false;
+        SK_MAYBE_UNUSED volatile bool junk = false;
         junk ^= (fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f);
         junk ^= (fArray[2] != 0.0f || fArray[5] != 0.0f);
     }
@@ -78,7 +78,7 @@
     int mulLoopCount() const override { return 4; }
     void performTest() override {
         // xoring into a volatile prevents the compiler from optimizing these checks away.
-        volatile int32_t junk = 0;
+        SK_MAYBE_UNUSED volatile int32_t junk = 0;
         junk ^= (SkScalarAs2sCompliment(fArray[6]) |
                  SkScalarAs2sCompliment(fArray[7]) |
                 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int));