[misc]: Fix a few compile warnings and errors

Reported by llvm-clang.

Change-Id: I62f22fe5754d3e8d77405d213c81fda5d9f5e27d
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen
2022-03-11 16:09:13 +08:00
committed by Herman Chen
parent da6654c148
commit c07169d533
15 changed files with 18 additions and 24 deletions

View File

@@ -88,7 +88,7 @@ void MppTraceService::trace_write(const char *fmt, ...)
len = vsnprintf(buf, sizeof(buf) - 1, fmt, ap);
va_end(ap);
write(mTraceFd, buf, len);
(void)!write(mTraceFd, buf, len);
}
void MppTraceService::trace_begin(const char* name)