[MPlayer-cvslog] r21631 - in trunk/libass: ass_font.c ass_fontconfig.c
Rich Felker
dalias at aerifal.cx
Sun Dec 17 11:05:47 CET 2006
On Sat, Dec 16, 2006 at 10:56:50PM +0300, Evgeniy Stepanov wrote:
> On Saturday 16 December 2006 22:23, Dominik 'Rathann' Mierzejewski wrote:
> > On Saturday, 16 December 2006 at 20:19, eugeni wrote:
> > > Author: eugeni
> > > Date: Sat Dec 16 20:19:27 2006
> > > New Revision: 21631
> > >
> > > Modified:
> > > trunk/libass/ass_font.c
> > > trunk/libass/ass_fontconfig.c
> > >
> > > Log:
> > > Avoid "pointer targets differ in signedness" warnings.
> >
> > Is it really OK to just cast the warning away? Maybe you should change the
> > data type of the variable instead.
>
> This data comes from strdup(), which returns char*, and is passed to
> FcFreeTypeQueryFace(), which requires unsigned char*. It has to be typecasted
> somewhere.
No, the compiler needs to be fixed not to generate such idiotic
warnings. Please don't obfuscate the code with ugly explicit casts to
shut the compiler up; instead just change the warning options so that
this stupid warning (which never indicates an error since signedness
is a property of arithmetic operations and not of data itself!!) goes away.
Rich
More information about the MPlayer-cvslog
mailing list