GNOME Bugzilla – Bug 309661
gcc 4.01 compiler treats pointer target warnings as errors
Last modified: 2005-07-24 04:01:25 UTC
Distribution/Version: mandrake 10.2 gcc 4.01 compiler, cvs head gnome-vfs ======================================== ne_string.c: In function 'ne_strclean': ne_string.c:499: warning: pointer targets in assignment differ in signedness ne_xml.c: In function 'ne_xml_doc_encoding': ne_xml.c:190: warning: pointer targets in return differ in signedness ne_xml.c: In function 'declare_nspaces': ne_xml.c:203: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness ne_xml.c:205: warning: pointer targets in passing argument 1 of 'ne_strdup' differ in signedness ne_xml.c:205: warning: pointer targets in assignment differ in signedness ne_xml.c:206: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness ne_xml.c:220: warning: pointer targets in passing argument 1 of 'ne_strdup' differ in signedness ne_xml.c:220: warning: pointer targets in assignment differ in signedness ne_xml.c:221: warning: pointer targets in passing argument 1 of 'ne_strdup' differ in signedness ne_xml.c:221: warning: pointer targets in assignment differ in signedness ne_xml.c: In function 'expand_qname': ne_xml.c:235: warning: pointer targets in passing argument 1 of '__builtin_strchr' differ in signedness ne_xml.c:235: warning: pointer targets in assignment differ in signedness ne_xml.c:244: warning: pointer targets in passing argument 1 of 'ne_strdup' differ in signedness ne_xml.c:244: warning: pointer targets in assignment differ in signedness ne_xml.c:247: warning: pointer targets in passing argument 2 of 'resolve_nspace' differ in signedness ne_xml.c:257: warning: pointer targets in passing argument 1 of 'ne_strdup' differ in signedness ne_xml.c:257: warning: pointer targets in assignment differ in signedness ne_xml.c:258: warning: pointer targets in assignment differ in signedness ne_xml.c: In function 'start_element': ne_xml.c:300: warning: pointer targets in passing argument 3 of 'hand->startelm_cb' differ in signedness ne_xml.c:300: warning: pointer targets in passing argument 4 of 'hand->startelm_cb' differ in signedness ne_xml.c: In function 'char_data': ne_xml.c:343: warning: pointer targets in passing argument 3 of 'elm->handler->cdata_cb' differ in signedness ne_xml.c: In function 'end_element': ne_xml.c:361: warning: pointer targets in passing argument 3 of 'elm->handler->endelm_cb' differ in signedness ne_xml.c:361: warning: pointer targets in passing argument 4 of 'elm->handler->endelm_cb' differ in signedness ne_xml.c: In function 'resolve_nspace': ne_xml.c:388: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness ne_xml.c:390: warning: pointer targets in return differ in signedness ne_xml.c: In function 'ne_xml_create': ne_xml.c:404: warning: pointer targets in assignment differ in signedness cc1: warnings being treated as errors cdda-cddb.c: In function 'CDDBRead': cdda-cddb.c:637: warning: 'disc.disc_totaltracks' is used uninitialized in this function make[2]: *** [cdda-cddb.lo] Error 1
You should use the -Wno-pointer-sign flag, see bug #309663 for a possible solution.
why not fixing the warnings instead of changing the compiler options?
This worked fine here last week- exactly what cflags are you using?
"cc1: warnings being treated as errors"
Well we don't have Werror on for the neon code becasue we don't want to get too much seperated from neon upstream. The real problem is not the signed pointer stuff but the uninitialized var in the cddb code. I am looking into this although the cdda method is kindof .. well ..
Ok I fixed that in cvs HEAD although that code looks a bit fishy on the first look (that's why the cdda method is disabled by default). Somebody might rewrite it someday to use gstreamer or we should totally drop it. Well that's it for now.
I can confirm that cvs head version now builds cleanly with the Mandriva gcc 4.01 compiler defaults.