[MPlayer-dev-eng] [PATCH 2/4] stream ftp: open_f: Mark parameter file_format unused

Alexander Strasser eclipse7 at gmx.net
Thu Nov 22 23:58:02 CET 2012


Hi Reimar,

Reimar Döffinger wrote:
> On Thu, Nov 22, 2012 at 10:23:31PM +0100, Alexander Strasser wrote:
> > We have nothing to say about it, so we do not set *file_format.
> > No need for compilers to emit a warning about it.
> > 
> > Signed-off-by: Alexander Strasser <eclipse7 at gmx.net>
> > ---
> >  stream/stream_ftp.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/stream/stream_ftp.c b/stream/stream_ftp.c
> > index 372051a..3736ecd 100644
> > --- a/stream/stream_ftp.c
> > +++ b/stream/stream_ftp.c
> > @@ -417,7 +417,7 @@ static void close_f(stream_t *s) {
> >  
> >  
> >  
> > -static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
> > +static int open_f(stream_t *stream,int mode, void* opts, av_unused int* file_format) {
> >    int resp;
> >    int64_t len = 0;
> >    struct stream_priv_s* p = (struct stream_priv_s*)opts;
> 
> Probably ok, an unrelated comment that this cast is pointless...

  OK, removed the cast locally with separate patch.

  Alexander


More information about the MPlayer-dev-eng mailing list