Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdb2ca5d authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix misc-macro-parentheses warnings in system/core.

Add parentheses around macro arguments used beside operators.
Bug: 28705665

Change-Id: I9226f319e283be640eddc31687f75b51a8ef0ac6
parent 863d8e11
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@
#include <sys/types.h>
#include <unistd.h>

#define ARRAY_SIZE(x)           (sizeof(x)/sizeof(x[0]))
#define ARRAY_SIZE(x)           (sizeof(x)/sizeof((x)[0]))

#define OP_DOWNLOAD   1
#define OP_COMMAND    2
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ char *locale;
#define min(a,b) ((a) < (b) ? (a) : (b))
#endif

#define ARRAY_SIZE(x)           (sizeof(x)/sizeof(x[0]))
#define ARRAY_SIZE(x)           (sizeof(x)/sizeof((x)[0]))

#define MSEC_PER_SEC            (1000LL)
#define NSEC_PER_MSEC           (1000000LL)
+1 −1
Original line number Diff line number Diff line
@@ -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"

+1 −1
Original line number Diff line number Diff line
@@ -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)
{