[vlc-devel] [PATCH 2/3] omxil: Avoid warnings about unused parameters in the IOMX C++ file

Rémi Denis-Courmont remi at remlab.net
Thu Sep 29 10:38:21 CEST 2011


On Thu, 29 Sep 2011 11:33:43 +0300, Martin Storsjö <martin at martin.st>
wrote:
> ---
>  modules/codec/omxil/Modules.am |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/modules/codec/omxil/Modules.am
> b/modules/codec/omxil/Modules.am
> index 728954d..4362340 100644
> --- a/modules/codec/omxil/Modules.am
> +++ b/modules/codec/omxil/Modules.am
> @@ -3,6 +3,7 @@ SOURCES_omxil = omxil.c utils.c omxil.h omxil_utils.h \
>          OMX_Audio.h OMX_Index.h OMX_Other.h OMX_Video.h ../h264_nal.h
>  
>  CPPFLAGS_iomx = -DUSE_IOMX
> +CXXFLAGS_iomx += -Wno-unused-parameter

That's not the kosher way to deal with this bug.

In C++, you can simply make the parameter anonymous. Otherwise, cast it to
void.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list