diff options
Diffstat (limited to 'vm/Thread.cpp')
-rw-r--r-- | vm/Thread.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vm/Thread.cpp b/vm/Thread.cpp index d82f15afe..36cba53b7 100644 --- a/vm/Thread.cpp +++ b/vm/Thread.cpp @@ -2153,6 +2153,10 @@ void dvmDetachCurrentThread() // cond var guarded by threadListLock, which we already hold cc = pthread_cond_signal(&gDvm.vmExitCond); assert(cc == 0); +#ifdef NDEBUG + // not used -> variable defined but not used warning + (void)cc; +#endif } } @@ -2710,6 +2714,10 @@ void dvmResumeAllThreads(SuspendCause why) lockThreadSuspendCount(); cc = pthread_cond_broadcast(&gDvm.threadSuspendCountCond); assert(cc == 0); +#ifdef NDEBUG + // not used -> variable defined but not used warning + (void)cc; +#endif unlockThreadSuspendCount(); LOG_THREAD("threadid=%d: ResumeAll complete", self->threadId); @@ -2759,6 +2767,10 @@ void dvmUndoDebuggerSuspensions() lockThreadSuspendCount(); cc = pthread_cond_broadcast(&gDvm.threadSuspendCountCond); assert(cc == 0); +#ifdef NDEBUG + // not used -> variable defined but not used warning + (void)cc; +#endif unlockThreadSuspendCount(); unlockThreadSuspend(); |