diff options
Diffstat (limited to 'liblog')
-rw-r--r-- | liblog/include/log/log_main.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/liblog/include/log/log_main.h b/liblog/include/log/log_main.h index f1ff31aa0..9c68ff2b4 100644 --- a/liblog/include/log/log_main.h +++ b/liblog/include/log/log_main.h | |||
@@ -43,10 +43,11 @@ __BEGIN_DECLS | |||
43 | /* | 43 | /* |
44 | * Use __VA_ARGS__ if running a static analyzer, | 44 | * Use __VA_ARGS__ if running a static analyzer, |
45 | * to avoid warnings of unused variables in __VA_ARGS__. | 45 | * to avoid warnings of unused variables in __VA_ARGS__. |
46 | * __FAKE_USE_VA_ARGS is undefined at link time, | ||
47 | * so don't link with __clang_analyzer__ defined. | ||
46 | */ | 48 | */ |
47 | |||
48 | #ifdef __clang_analyzer__ | 49 | #ifdef __clang_analyzer__ |
49 | #define __FAKE_USE_VA_ARGS(...) ((void)(__VA_ARGS__)) | 50 | extern void __FAKE_USE_VA_ARGS(...); |
50 | #else | 51 | #else |
51 | #define __FAKE_USE_VA_ARGS(...) ((void)(0)) | 52 | #define __FAKE_USE_VA_ARGS(...) ((void)(0)) |
52 | #endif | 53 | #endif |