After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309661 - gcc 4.01 compiler treats pointer target warnings as errors
gcc 4.01 compiler treats pointer target warnings as errors
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Build
cvs (head)
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-07 01:52 UTC by Rod Butcher
Modified: 2005-07-24 04:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Rod Butcher 2005-07-07 01:52:04 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
Comment 1 Marco Barisione 2005-07-08 11:56:33 UTC
You should use the -Wno-pointer-sign flag, see bug #309663 for a possible 
solution.
Comment 2 Sebastien Bacher 2005-07-17 11:20:48 UTC
why not fixing the warnings instead of changing the compiler options?
Comment 3 Luis Villa 2005-07-21 21:16:00 UTC
This worked fine here last week- exactly what cflags are you using?
Comment 4 Allison Karlitskaya (desrt) 2005-07-21 21:37:42 UTC
"cc1: warnings being treated as errors"
Comment 5 Christian Kellner 2005-07-23 22:37:42 UTC
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 .. 
Comment 6 Christian Kellner 2005-07-23 23:09:51 UTC
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. 
Comment 7 Rod Butcher 2005-07-24 04:01:25 UTC
I can confirm that cvs head version now builds cleanly with the Mandriva gcc
4.01 compiler defaults.