summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorChih-Hung Hsieh2018-07-25 14:15:25 -0500
committerChih-Hung Hsieh2018-07-25 16:36:35 -0500
commit62b0ef556d778a5734ce84d1da6e7ca8cf8f9362 (patch)
treea96112f8fee69a776bc9165ca1b3a4450aa00532 /liblog
parent56795ac483e09678b4c92b7cc213c1c68f8718f7 (diff)
downloadplatform-system-core-62b0ef556d778a5734ce84d1da6e7ca8cf8f9362.tar.gz
platform-system-core-62b0ef556d778a5734ce84d1da6e7ca8cf8f9362.tar.xz
platform-system-core-62b0ef556d778a5734ce84d1da6e7ca8cf8f9362.zip
Declare __fake_use_va_args as a variadic function.
* New clang compiler requires variadic function to have at least one named parameter type. * Use ##__VA_ARGS__ to work with empty __VA_ARGS__. * Fix one ALOG_ASSERT parameter bug in lmkd/lmkd.c. Bug: 111614304 Test: make with WITH_TIDY=1 Change-Id: I90f35aa88527a6897954f69a35b256a157a725c5
Diffstat (limited to 'liblog')
-rw-r--r--liblog/include/log/log_main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/liblog/include/log/log_main.h b/liblog/include/log/log_main.h
index 9c68ff2b4..13143306a 100644
--- a/liblog/include/log/log_main.h
+++ b/liblog/include/log/log_main.h
@@ -47,7 +47,8 @@ __BEGIN_DECLS
47 * so don't link with __clang_analyzer__ defined. 47 * so don't link with __clang_analyzer__ defined.
48 */ 48 */
49#ifdef __clang_analyzer__ 49#ifdef __clang_analyzer__
50extern void __FAKE_USE_VA_ARGS(...); 50extern void __fake_use_va_args(int, ...);
51#define __FAKE_USE_VA_ARGS(...) __fake_use_va_args(0, ##__VA_ARGS__)
51#else 52#else
52#define __FAKE_USE_VA_ARGS(...) ((void)(0)) 53#define __FAKE_USE_VA_ARGS(...) ((void)(0))
53#endif 54#endif