Mark a variable as volatile to suppress a gcc warning.
Change-Id: Ic5263e2d7e52c72d35bf706d86bba2ad6548ce58
diff --git a/vm/compiler/Compiler.cpp b/vm/compiler/Compiler.cpp
index 77cf164..c08d42d 100644
--- a/vm/compiler/Compiler.cpp
+++ b/vm/compiler/Compiler.cpp
@@ -649,7 +649,12 @@
CompilerWorkOrder work = workDequeue();
dvmUnlockMutex(&gDvmJit.compilerLock);
#if defined(WITH_JIT_TUNING)
- u8 startTime = dvmGetRelativeTimeUsec();
+ /*
+ * This is live across setjmp(). Mark it volatile to suppress
+ * a gcc warning. We should not need this since it is assigned
+ * only once but gcc is not smart enough.
+ */
+ volatile u8 startTime = dvmGetRelativeTimeUsec();
#endif
/*
* Check whether there is a suspend request on me. This