summaryrefslogtreecommitdiffstats
path: root/vm/Sync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vm/Sync.cpp')
-rw-r--r--vm/Sync.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/vm/Sync.cpp b/vm/Sync.cpp
index 8a3803eb4..d1f3ba843 100644
--- a/vm/Sync.cpp
+++ b/vm/Sync.cpp
@@ -757,6 +757,12 @@ done:
dvmThrowInterruptedException(NULL);
}
}
+#ifdef NDEBUG
+ // ret is used only in assert() statements ==> not used in
+ // NDEBUG builds at all, causing variable defined but not
+ // used warning, breaking the build with -Werror
+ (void)ret;
+#endif
}
/*