Package: zorp
Severity: normal
Tags: patch
When building 'zorp' on amd64 with gcc-4.0,
I get the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/zorp-2.0.9/lib -I/zorp-2.0.9
-I/usr/include/python2.3 -I/usr/include/python2.3/ExtensionClass/ -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_GNU_SOURCE -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -Wall -W -g
-D_GNU_SOURCE -c test_registry.c
test_registry.c: In function 'main':
test_registry.c:15: warning: cast to pointer from integer of different size
test_registry.c:23: warning: cast to pointer from integer of different size
test_registry.c:23: error: invalid lvalue in assignment
make[4]: *** [test_registry.o] Error 1
make[4]: Leaving directory `/zorp-2.0.9/tests/core'
With the attached patch 'zorp' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/zorp-2.0.9/tests/core/test_registry.c
./tests/core/test_registry.c
--- ../tmp-orig/zorp-2.0.9/tests/core/test_registry.c 2004-05-18
12:07:32.000000000 +0200
+++ ./tests/core/test_registry.c 2005-01-14 08:13:06.326274273 +0100
@@ -20,7 +20,7 @@
gint type = 0;
snprintf(buf, sizeof(buf), "key%d", i);
- (gpointer) res = z_registry_get(buf, &type);
+ res = z_registry_get(buf, &type);
if (res != i)
{
printf("problem.\n");
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]