lint fixes

This commit is contained in:
Devaev Maxim
2020-05-12 08:19:26 +03:00
parent d22034da96
commit aeae342853
6 changed files with 9 additions and 4 deletions

View File

@@ -61,6 +61,7 @@ int component_disable_port(OMX_HANDLETYPE *component, OMX_U32 port) {
int component_get_portdef(OMX_HANDLETYPE *component, OMX_PARAM_PORTDEFINITIONTYPE *portdef, OMX_U32 port) {
OMX_ERRORTYPE error;
// cppcheck-suppress redundantPointerOp
OMX_INIT_STRUCTURE(*portdef);
portdef->nPortIndex = port;

View File

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