Bug#451497: g_assert macro is not -Wall clean

Josselin Mouette joss at debian.org
Fri Nov 16 14:11:17 UTC 2007


Hi,

Le jeudi 15 novembre 2007 à 23:54 +0100, Wouter Verhelst a écrit :
> nbd-server.c: In function 'parse_cfile':
> nbd-server.c:616: warning: passing argument 4 of 'g_assert_warning' discards qualifiers from pointer target type
> nbd-server.c:617: warning: passing argument 4 of 'g_assert_warning' discards qualifiers from pointer target type
> nbd-server.c: In function 'get_filepos':
> nbd-server.c:849: warning: passing argument 4 of 'g_assert_warning' discards qualifiers from pointer target type
> make[1]: *** [nbd_server-nbd-server.o] Error 1
> make[1]: Leaving directory `/home/wouter/debian/nbd/nbd-svn-2.9'
> make: *** [all] Error 2
> wouter at country:~/debian/nbd/nbd-svn-2.9$ exit
> 
> Script done on Thu Nov 15 23:49:26 2007
> 
> This shouldn't happen, really. 

I can't reproduce that in a simple testcase. Do you have sample code
showing this behavior? What GCC version are you using?

Thanks,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20071116/c14e03b5/attachment.pgp 


More information about the pkg-gnome-maintainers mailing list