summaryrefslogtreecommitdiff
path: root/runtime/base/mutex.cc
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2016-05-11 11:26:48 -0700
committer Chih-Hung Hsieh <chh@google.com> 2016-05-13 10:38:56 -0700
commitfba39972d99701c80bf3beb7451aca508d67593c (patch)
tree0d80ecb6997290140503926b08a72e7418915526 /runtime/base/mutex.cc
parent718d4e269810c17d03df909c84b2f7bbd4f61fb9 (diff)
Fix misc-macro-parentheses warnings.
* Add parentheses to fix warnings. * Use NOLINT to suppress wrong clang-tidy warnings. Bug: 28705665 Change-Id: Icc8bc9b59583dee0ea17ab83e0ff0383b8599c3e
Diffstat (limited to 'runtime/base/mutex.cc')
-rw-r--r--runtime/base/mutex.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/base/mutex.cc b/runtime/base/mutex.cc
index 620bf9c8b7..71b238ba73 100644
--- a/runtime/base/mutex.cc
+++ b/runtime/base/mutex.cc
@@ -971,7 +971,7 @@ void Locks::Init() {
instrument_entrypoints_lock_ = new Mutex("instrument entrypoint lock", current_lock_level);
#define UPDATE_CURRENT_LOCK_LEVEL(new_level) \
- if (new_level >= current_lock_level) { \
+ if ((new_level) >= current_lock_level) { \
/* Do not use CHECKs or FATAL here, abort_lock_ is not setup yet. */ \
fprintf(stderr, "New local level %d is not less than current level %d\n", \
new_level, current_lock_level); \