Merge "Fix misc-macro-parentheses warnings."

am: 2d0b1fa2e9

* commit '2d0b1fa2e96723c190f5805197731256968a4d66':
  Fix misc-macro-parentheses warnings.

Change-Id: I59bc91bd8c9cf9f47efaf4f976d874e2dcb8badf
This commit is contained in:
Chih-Hung Hsieh 2016-05-16 18:55:23 +00:00 committed by android-build-merger
commit 10e811f13e
4 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@
#include "ExampleCamera.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
namespace default_camera_hal {

View file

@ -22,7 +22,7 @@
#include <hardware/hardware.h>
#include <hardware/consumerir.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
static const consumerir_freq_range_t consumerir_freqs[] = {
{.min = 30000, .max = 30000},

View file

@ -26,7 +26,7 @@
#include "Camera.h"
#include "UsbCamera.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
namespace usb_camera_hal {

View file

@ -37,7 +37,7 @@ typedef struct ANativeWindow aWindow;
static int trace_level = 1;
#define _TRACE(n,fmt...) \
do { if (trace_level >= n) fprintf(stderr, "CNW: " fmt); } while (0)
do { if (trace_level >= (n)) fprintf(stderr, "CNW: " fmt); } while (0)
#define ERROR(fmt...) _TRACE(0, fmt)
#define INFO(fmt...) _TRACE(1, fmt)