diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-06-10 10:39:35 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-06-22 14:33:13 -0700 |
commit | cdb2ca5d9f4fe4c3ac1d930394f088aed5d944ac (patch) | |
tree | 782f71d0dab91d3e609d93279179b35593e77c11 /trusty | |
parent | 863d8e11b9b62388d9d00d7192b5e6f39fa089fa (diff) | |
download | core-cdb2ca5d9f4fe4c3ac1d930394f088aed5d944ac.tar.gz core-cdb2ca5d9f4fe4c3ac1d930394f088aed5d944ac.tar.bz2 core-cdb2ca5d9f4fe4c3ac1d930394f088aed5d944ac.zip |
Fix misc-macro-parentheses warnings in system/core.
Add parentheses around macro arguments used beside operators.
Bug: 28705665
Change-Id: I9226f319e283be640eddc31687f75b51a8ef0ac6
Diffstat (limited to 'trusty')
-rw-r--r-- | trusty/storage/tests/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trusty/storage/tests/main.cpp b/trusty/storage/tests/main.cpp index a771b877d..1fd6f8ddc 100644 --- a/trusty/storage/tests/main.cpp +++ b/trusty/storage/tests/main.cpp @@ -23,7 +23,7 @@ #define TRUSTY_DEVICE_NAME "/dev/trusty-ipc-dev0" -#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) +#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) static inline bool is_32bit_aligned(size_t sz) { |