Just upgraded to Ubuntu Jaunty (9.04), and when recompiling GtkG (svn 16499), I 
am seeing tons of the warning message "ISO C forbids braced-groups within 
expressions".  Here's a sampling:

In file included from parq.h:43,
                 from uploads.c:59:
uploads.h: In function ‘upload_check’:
uploads.h:141: warning: ISO C forbids braced-groups within expressions
uploads.h:142: warning: ISO C forbids braced-groups within expressions
uploads.c: In function ‘upload_add_upload_added_listener’:
uploads.c:200: warning: ISO C forbids braced-groups within expressions
uploads.c:200: warning: ISO C forbids braced-groups within expressions
uploads.c: In function ‘upload_remove_upload_added_listener’:
uploads.c:206: warning: ISO C forbids braced-groups within expressions
uploads.c:206: warning: ISO C forbids braced-groups within expressions
uploads.c: In function ‘upload_add_upload_removed_listener’:
uploads.c:212: warning: ISO C forbids braced-groups within expressions
uploads.c:212: warning: ISO C forbids braced-groups within expressions
uploads.c: In function ‘upload_remove_upload_removed_listener’:
uploads.c:218: warning: ISO C forbids braced-groups within expressions
uploads.c:218: warning: ISO C forbids braced-groups within expressions

In file included from ../lib/prop.h:31,
                 from ../if/gnet_property.h:32,
                 from verify.c:43:
../lib/host_addr.h: In function ‘net_type_to_pf’:
../lib/host_addr.h:72: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ‘net_type_to_af’:
../lib/host_addr.h:90: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ‘host_addr_initialized’:
../lib/host_addr.h:194: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ‘net_type_to_string’:
../lib/host_addr.h:207: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ‘host_addr_equal’:
../lib/host_addr.h:276: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ‘host_addr_cmp’:
../lib/host_addr.h:317: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ‘host_addr_matches’:
../lib/host_addr.h:358: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ‘is_host_addr’:
../lib/host_addr.h:376: warning: ISO C forbids braced-groups within expressions

It seems that every assert throughout GtkG is triggering this warning (and 
there are a LOT of them :)).

I suspect this is a result of picking up a new gcc version with the upgrade.  
Here's the version I'm using:

ll...@dell:/usr/local/src/gtk-gnutella$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' 
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic 
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu 
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) 

Any clues?

Lloyd B.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
gtk-gnutella-devel mailing list
gtk-gnutella-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to