[MPlayer-dev-eng] [PATCH] remove a bunch of const qualifiers to get rid of compiler warnings

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu May 7 19:06:51 CEST 2009


On Tue, May 05, 2009 at 08:10:51PM +0200, Diego Biurrun wrote:
> $attached removes const qualifiers from array declarations where gcc was
> warning about 'initialization discards qualifiers from pointer target type'.
> 
> This eliminates all the remaining warnings on mplayer.c and mencoder.c.
> I'm not sure this is the best solution though.

No, not at all. There are some wrong types in m_option.c and some other
issues can only be fixed with a cast (though maybe shouldn't be).
m_option has been largely fixed, but some places were forgotten and some
are a mess.



More information about the MPlayer-dev-eng mailing list