aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-12-08 15:31:44 -0800
committerAndreas Gampe <agampe@google.com>2014-12-08 15:31:44 -0800
commit32e9830130645f88e7a2ad43556ad4adb3db31d4 (patch)
treec89f380e84cb2cad1b2f210f0db5cb76281cb2cb
parent3f7ceee13aa17ae32d4263aed2ce67eb9a37c58b (diff)
downloadwrs_omxil_core-32e9830130645f88e7a2ad43556ad4adb3db31d4.tar.gz
Wrs Omxil: Remove unused variablesandroid-wear-5.0.0_r1lollipop-wear-release
For build-system CFLAGS clean-up, remove unused variables. Bug: 18632512 Change-Id: I4da2cb255b4bc08c5dfc04d7d31c58e63d90948e
-rw-r--r--base/src/cmodule.cpp1
-rw-r--r--base/src/componentbase.cpp6
-rw-r--r--core/src/wrs_omxcore.cpp6
-rw-r--r--utils/src/module.c2
4 files changed, 1 insertions, 14 deletions
diff --git a/base/src/cmodule.cpp b/base/src/cmodule.cpp
index 4ddd920..60864d9 100644
--- a/base/src/cmodule.cpp
+++ b/base/src/cmodule.cpp
@@ -221,7 +221,6 @@ OMX_ERRORTYPE CModule::QueryComponentNameAndRoles(void)
OMX_U8 **this_roles;
OMX_U32 i;
- OMX_ERRORTYPE ret;
if (this->roles)
return OMX_ErrorNone;
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp
index 10db2c8..3aec00b 100644
--- a/base/src/componentbase.cpp
+++ b/base/src/componentbase.cpp
@@ -243,7 +243,6 @@ OMX_ERRORTYPE ComponentBase::GetHandle(OMX_HANDLETYPE *pHandle,
OMX_PTR pAppData,
OMX_CALLBACKTYPE *pCallBacks)
{
- OMX_U32 i;
OMX_ERRORTYPE ret;
if (!pHandle)
@@ -327,8 +326,6 @@ free_cmdwork:
OMX_ERRORTYPE ComponentBase::FreeHandle(OMX_HANDLETYPE hComponent)
{
- OMX_ERRORTYPE ret;
-
if (hComponent != handle)
return OMX_ErrorBadParameter;
@@ -931,7 +928,6 @@ OMX_ERRORTYPE ComponentBase::CBaseUseBuffer(
OMX_IN OMX_U8 *pBuffer)
{
PortBase *port = NULL;
- OMX_ERRORTYPE ret;
if (hComponent != handle)
return OMX_ErrorBadParameter;
@@ -988,7 +984,6 @@ OMX_ERRORTYPE ComponentBase::CBaseAllocateBuffer(
OMX_IN OMX_U32 nSizeBytes)
{
PortBase *port = NULL;
- OMX_ERRORTYPE ret;
if (hComponent != handle)
return OMX_ErrorBadParameter;
@@ -1036,7 +1031,6 @@ OMX_ERRORTYPE ComponentBase::CBaseFreeBuffer(
OMX_IN OMX_BUFFERHEADERTYPE *pBuffer)
{
PortBase *port = NULL;
- OMX_ERRORTYPE ret;
if (hComponent != handle)
return OMX_ErrorBadParameter;
diff --git a/core/src/wrs_omxcore.cpp b/core/src/wrs_omxcore.cpp
index 412b7d4..476fb2a 100644
--- a/core/src/wrs_omxcore.cpp
+++ b/core/src/wrs_omxcore.cpp
@@ -122,8 +122,6 @@ static struct list *destruct_components(struct list *head)
OMX_API OMX_ERRORTYPE OMX_APIENTRY OMX_Init(void)
{
- int ret;
-
LOGV("%s(): enter", __FUNCTION__);
pthread_mutex_lock(&g_module_lock);
@@ -169,7 +167,6 @@ OMX_API OMX_ERRORTYPE OMX_APIENTRY OMX_ComponentNameEnum(
OMX_IN OMX_U32 nIndex)
{
CModule *cmodule;
- ComponentBase *cbase;
struct list *entry;
OMX_STRING cname;
@@ -358,9 +355,7 @@ OMX_API OMX_ERRORTYPE OMX_GetRolesOfComponent (
pthread_mutex_lock(&g_module_lock);
list_foreach(g_module_list, entry) {
CModule *cmodule;
- ComponentBase *cbase;
OMX_STRING cname;
- OMX_ERRORTYPE ret;
cmodule = static_cast<CModule *>(entry->data);
@@ -370,6 +365,7 @@ OMX_API OMX_ERRORTYPE OMX_GetRolesOfComponent (
#if LOG_NDEBUG
return cmodule->GetComponentRoles(pNumRoles, roles);
#else
+ OMX_ERRORTYPE ret;
ret = cmodule->GetComponentRoles(pNumRoles, roles);
if (ret != OMX_ErrorNone) {
OMX_U32 i;
diff --git a/utils/src/module.c b/utils/src/module.c
index d8a2c71..c92ab23 100644
--- a/utils/src/module.c
+++ b/utils/src/module.c
@@ -123,7 +123,6 @@ const char *module_error(void)
struct module *module_open(const char *file, int flag)
{
struct module *new, *existing;
- void *handle;
const char *dlerr;
int init_ret = 0;
@@ -207,7 +206,6 @@ free_new:
int module_close(struct module *module)
{
- const char *dlerr;
int ret = 0;
if (!module || !module->handle)