GNOME Bugzilla – Bug 329850
io-svg.c won't compile as-is
Last modified: 2010-07-10 04:06:55 UTC
Please describe the problem: When trying to build (from CVS), I got the following warnings: " cc1: warnings being treated as errors io-svg.c: In function 'fill_info': io-svg.c:206: warning: pointer targets in initialization differ in signedness io-svg.c:207: warning: pointer targets in initialization differ in signedness io-svg.c:211: warning: pointer targets in initialization differ in signedness io-svg.c:211: warning: pointer targets in initialization differ in signedness io-svg.c:212: warning: pointer targets in initialization differ in signedness io-svg.c:212: warning: pointer targets in initialization differ in signedness " which prevent compilation. They are easily fixed by changing those 6 instances of (unsigned char *) to (char *). Steps to reproduce: 1. Try to compile from CVS with the gdk-pixbuf-loader enabled. Actual results: Expected results: Success in compiling Does this happen every time? Yes Other information:
What compiler and version of the compiler?
Reassigning to GTK+. According to their interface, they're supposed to be unsigned chars. Looking at the header file for GTK+ 2.9, they've changed them to chars, which constitutes an API breakage IMHO. http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-Module-Interface.html#GdkPixbufModulePattern
GCC. gcc -v prints the following: Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.3 20060115 (prerelease) (Debian 4.0.2-7) I suspect this is no longer relevant; included for completeness Yes I'm using a recent CVS version of Gtk+
*** Bug 335355 has been marked as a duplicate of this bug. ***
*** Bug 338022 has been marked as a duplicate of this bug. ***
*** Bug 340926 has been marked as a duplicate of this bug. ***
I hacked librsvg so that it would compile with -Werror. -Werror considered harmful... I guessed that this happens only in GTK+ >= 2.9.0, but it might be the case with 2.8.x too.
This is not a problem anymore