Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Fix misc-macro-parentheses warnings in system/core."
Browse files Browse the repository at this point in the history
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Jun 22, 2016
2 parents cfdd57e + cdb2ca5 commit 495541c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fastboot/engine.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion healthd/healthd_mode_charger.cpp
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion init/util.h
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion trusty/storage/tests/main.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 495541c

Please sign in to comment.