Merge "Improve ALOGV compatiblity with clang-tidy" am: 854eb6cf78 am: 1e45dfdb47

am: 67ff981818

Change-Id: Ibd605708e11d5f95b50bb8432dff5aba5e8db1ef
This commit is contained in:
Krzysztof Wesolowski 2018-01-13 22:32:53 +00:00 committed by android-build-merger
commit 7f49e4657b
1 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,8 @@
#ifndef _LIBS_LOG_LOG_MAIN_H
#define _LIBS_LOG_LOG_MAIN_H
#include <stdbool.h>
#include <android/log.h>
#include <sys/cdefs.h>
@ -175,10 +177,10 @@ __BEGIN_DECLS
#if LOG_NDEBUG
#define ALOGV(...) \
do { \
if (0) { \
if (false) { \
__ALOGV(__VA_ARGS__); \
} \
} while (0)
} while (false)
#else
#define ALOGV(...) __ALOGV(__VA_ARGS__)
#endif