commit | cdb2ca5d9f4fe4c3ac1d930394f088aed5d944ac | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Jun 10 10:39:35 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Wed Jun 22 14:33:13 2016 -0700 |
tree | 782f71d0dab91d3e609d93279179b35593e77c11 | |
parent | 863d8e11b9b62388d9d00d7192b5e6f39fa089fa [diff] [blame] |
Fix misc-macro-parentheses warnings in system/core. Add parentheses around macro arguments used beside operators. Bug: 28705665 Change-Id: I9226f319e283be640eddc31687f75b51a8ef0ac6
diff --git a/init/util.h b/init/util.h index c2efb01..b9496a9 100644 --- a/init/util.h +++ b/init/util.h
@@ -23,7 +23,7 @@ #include <string> #include <functional> -#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) +#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) #define COLDBOOT_DONE "/dev/.coldboot_done"