diff options
Diffstat (limited to 'vm/LinearAlloc.cpp')
-rw-r--r-- | vm/LinearAlloc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vm/LinearAlloc.cpp b/vm/LinearAlloc.cpp index 359893f64..213ba3cf2 100644 --- a/vm/LinearAlloc.cpp +++ b/vm/LinearAlloc.cpp @@ -524,6 +524,12 @@ static void updatePages(Object* classLoader, void* mem, int direction) } dvmUnlockMutex(&pHdr->lock); +#ifdef NDEBUG + // cc is used only in assert() statements -> not used + // in NDEBUG mode -> variable defined but not used + // warning (or error with -Werror) + (void)cc; +#endif } /* |