Merge "Declare __fake_use_va_args as a variadic function."

am: e352a75b90

Change-Id: I4cfeb23cab215741944485baa47450115ed671e0
This commit is contained in:
Chih-Hung Hsieh 2018-07-25 16:44:45 -07:00 committed by android-build-merger
commit 7585d2270e
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,8 @@ __BEGIN_DECLS
* so don't link with __clang_analyzer__ defined.
*/
#ifdef __clang_analyzer__
extern void __FAKE_USE_VA_ARGS(...);
extern void __fake_use_va_args(int, ...);
#define __FAKE_USE_VA_ARGS(...) __fake_use_va_args(0, ##__VA_ARGS__)
#else
#define __FAKE_USE_VA_ARGS(...) ((void)(0))
#endif

View File

@ -341,7 +341,7 @@ static int reread_file(struct reread_data *data, char *buf, size_t buf_size) {
data->fd = -1;
return -1;
}
ALOG_ASSERT((size_t)size < buf_size - 1, data->filename " too large");
ALOG_ASSERT((size_t)size < buf_size - 1, "%s too large", data->filename);
buf[size] = 0;
return 0;