[Mono-list] libgdiplus - Mac OS X 10.4 / fink / xcode 2.1

Robert W. Baskette rwbaskette at gmail.com
Wed Sep 21 02:31:35 EDT 2005


his is my first post to the list so if I'm in the wrong place let me
know (thanx!)

Had a problem while compiling libgdiplus from the anon svn.
I am linking against a fink installed libungif library (libungif
4.1.0final-3) and received the following warning that was focred by to
be treated as an error :

cc1: warnings being treated as errors
gifcodec.c: In function 'gdip_load_gif_image':
gifcodec.c:287: warning: pointer targets in assignment differ in signedness


in gifcodec.c line 287 reads:
    readptr = si.RasterBits;

after looking up the gnome docs saw that a guchar, as is readptr from
above, was just an unisgned char
(http://developer.gnome.org/doc/API/glib/glib-basic-types.html#GUCHAR)
and seeing that the declaration of the RasterBits was:
char                *RasterBits;            /* on malloc(3) heap */

I changed it to:
    readptr = (guchar*)si.RasterBits;

compiles clean and should theoretically work...

Sorry if I'm making a federal case out of nothing...

Bob


More information about the Mono-list mailing list