[MPlayer-cvslog] r36944 - in trunk/gui/win32: interface.c playlist.c playlist.h

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Feb 25 20:43:51 CET 2014

On Tue, Feb 25, 2014 at 07:39:10PM +0100, Ingo Brückl wrote:
> Reimar Döffinger wrote on Tue, 25 Feb 2014 19:01:27 +0100:
> >> @@ -501,6 +501,8 @@ static unsigned __stdcall GuiThread(void
> >>  {
> >>      MSG msg;
> >>
> >> +    (void) param;
> > This is a bit ugly and might not work in all compilers.
> I'd say it'll work on most (all?) compilers. Yes, it's ugly.
> > I think using av_unused on the parameter would be nicer,
> I don't mind using it, but it would be nice if gcc would warn if such a
> parameter *will* be used later. (This is the only thing I dislike about the
> (void) solution. It'll look strange if you forget to remove it later. With
> av_unused it'll even look stranger.)

I don't think gcc warns, in part because it is sometimes used for
variables that will only be used under some #ifdef.
But I never actually checked...
Anyway, use whichever you prefer, I really meant to say that
for my own code I decided in the end that I actually prefer
av_unused. In part also because that means it will always
be with the declaration instead of hidden at some "random" place
in the code.

More information about the MPlayer-cvslog mailing list