lint fixes

This commit is contained in:
Devaev Maxim
2020-05-12 09:37:02 +03:00
parent 8d6f5f7f8f
commit 66c627c682
2 changed files with 2 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ const char *omx_state_to_string(OMX_STATETYPE state) {
CASE_TO_STRING(OMX_StateIdle);
CASE_TO_STRING(OMX_StateExecuting);
// cppcheck-suppress constArgument
// cppcheck-suppress knownArgument
CASE_ASSERT("Unsupported OMX state", state);
}
}

View File

@@ -52,6 +52,7 @@ INLINE int xioctl(int fd, int request, void *arg) {
)
);
// cppcheck-suppress knownConditionTrueFalse
if (retval && retries <= 0) {
LOG_PERROR("ioctl(%d) retried %u times; giving up", request, XIOCTL_RETRIES);
}