summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/thread.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/thread.cc b/runtime/thread.cc
index 217644417c..2a7cd0787d 100644
--- a/runtime/thread.cc
+++ b/runtime/thread.cc
@@ -561,6 +561,7 @@ void Thread::InstallImplicitProtection() {
// Read every page from the high address to the low.
volatile uint8_t dont_optimize_this;
+ UNUSED(dont_optimize_this);
for (uint8_t* p = stack_top; p >= pregion; p -= kPageSize) {
dont_optimize_this = *p;
}