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

Diego Biurrun diego at biurrun.de
Tue May 5 20:47:43 CEST 2009


On Tue, May 05, 2009 at 09:24:21PM +0300, Uoti Urpala wrote:
> On Tue, 2009-05-05 at 20:10 +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.
> 
> That's wrong, those arrays are clearly constant (any code trying to
> change them would be badly broken).

Is there a solution that gets rid of the warnings?

Diego



More information about the MPlayer-dev-eng mailing list