[vlc-commits] omxil: Avoid warnings about unused parameters in the IOMX C++ file

Martin Storsjö git at videolan.org
Thu Sep 29 11:56:59 CEST 2011


vlc | branch: master | Martin Storsjö <martin at martin.st> | Thu Sep 29 11:47:57 2011 +0300| [212c3918dad2a844d279e5c98a7c8e9666f69cae] | committer: Jean-Baptiste Kempf

omxil: Avoid warnings about unused parameters in the IOMX C++ file

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=212c3918dad2a844d279e5c98a7c8e9666f69cae
---

 modules/codec/omxil/iomx.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/codec/omxil/iomx.cpp b/modules/codec/omxil/iomx.cpp
index acdd054..052a85d 100644
--- a/modules/codec/omxil/iomx.cpp
+++ b/modules/codec/omxil/iomx.cpp
@@ -68,7 +68,7 @@ public:
         node = n;
     }
     void onMessage(const omx_message &msg);
-    void registerBuffers(const sp<IMemoryHeap> &mem) {
+    void registerBuffers(const sp<IMemoryHeap> &) {
     }
 private:
     OMXNode *node;
@@ -157,7 +157,7 @@ static int get_param_size(OMX_INDEXTYPE param_index)
     }
 }
 
-static OMX_ERRORTYPE iomx_send_command(OMX_HANDLETYPE component, OMX_COMMANDTYPE command, OMX_U32 param1, OMX_PTR cmd_data)
+static OMX_ERRORTYPE iomx_send_command(OMX_HANDLETYPE component, OMX_COMMANDTYPE command, OMX_U32 param1, OMX_PTR)
 {
     OMXNode* node = (OMXNode*) ((OMX_COMPONENTTYPE*)component)->pComponentPrivate;
     return get_error(ctx->iomx->sendCommand(node->node, command, param1));
@@ -368,7 +368,7 @@ static OMX_ERRORTYPE iomx_get_roles_of_component(OMX_STRING component_name, OMX_
     return OMX_ErrorInvalidComponentName;
 }
 
-void* iomx_dlopen(const char *name)
+void* iomx_dlopen(const char *)
 {
     if (!ctx)
         ctx = new IOMXContext();
@@ -386,7 +386,7 @@ void iomx_dlclose(void *handle)
     }
 }
 
-void *iomx_dlsym(void *handle, const char *name)
+void *iomx_dlsym(void *, const char *name)
 {
     if (!strcmp(name, "OMX_Init"))
         return (void*) iomx_init;



More information about the vlc-commits mailing list