summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-05-18 15:53:15 -0700
committerChih-Hung Hsieh <chh@google.com>2016-05-18 15:53:15 -0700
commit67867dbd79a0cbc9b603b23ac460f9f58ea14d1e (patch)
treea8ef7f306ebae12a12fd20bd9a1a4a88a82bcee4 /debuggerd
parent9b0eb7cdf4ac4650fc3f476c2f5a91c50a18e524 (diff)
downloadcore-67867dbd79a0cbc9b603b23ac460f9f58ea14d1e.tar.gz
core-67867dbd79a0cbc9b603b23ac460f9f58ea14d1e.tar.bz2
core-67867dbd79a0cbc9b603b23ac460f9f58ea14d1e.zip
Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace.
Bug: 28705665 Change-Id: I469b2a882f6d1f399bfc22c75a26da245991fc33
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/elf_utils.cpp2
-rw-r--r--debuggerd/test/host_signal_fixup.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/debuggerd/elf_utils.cpp b/debuggerd/elf_utils.cpp
index 9959f2e1f..3d99cab31 100644
--- a/debuggerd/elf_utils.cpp
+++ b/debuggerd/elf_utils.cpp
@@ -29,7 +29,7 @@
#include "elf_utils.h"
-#define NOTE_ALIGN(size) ((size + 3) & ~3)
+#define NOTE_ALIGN(size) (((size) + 3) & ~3)
template <typename HdrType, typename PhdrType, typename NhdrType>
static bool get_build_id(
diff --git a/debuggerd/test/host_signal_fixup.h b/debuggerd/test/host_signal_fixup.h
index c7796efed..762bae5fb 100644
--- a/debuggerd/test/host_signal_fixup.h
+++ b/debuggerd/test/host_signal_fixup.h
@@ -57,7 +57,7 @@
#endif
#if !defined(SI_DETHREAD)
-#define SI_DETHREAD -7
+#define SI_DETHREAD (-7)
#endif
#endif