Merge "Fix misc-macro-parentheses warnings." am: 2d0b1fa2e9 am: 10e811f13e

am: 78df3759f6

* commit '78df3759f6d10a9e8fd72bbf2282f5fcddfe0172':
  Fix misc-macro-parentheses warnings.

Change-Id: Idcfc85e62d0943f67573959f72196f81d33e7761
This commit is contained in:
Chih-Hung Hsieh 2016-05-16 19:00:02 +00:00 committed by android-build-merger
commit 1efeb2c4a3
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)