Package: treetool
Severity: normal
Tags: patch
When building 'treetool' on amd64 with gcc-4.0,
I get the following error:
pchoice.c: In function 'tpchoice_add':
pchoice.c:266: warning: comparison between pointer and integer
pchoice.c:286: error: invalid lvalue in assignment
make[2]: *** [pchoice.o] Error 1
make[2]: Leaving directory `/treetool-2.0.2a/graphics'
With the attached patch 'treetool' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/treetool-2.0.2a/graphics/pchoice.c ./graphics/pchoice.c
--- ../tmp-orig/treetool-2.0.2a/graphics/pchoice.c 1994-05-02
20:34:56.000000000 +0000
+++ ./graphics/pchoice.c 2005-02-28 12:30:12.716216561 +0000
@@ -283,7 +283,7 @@
NULL);
m->sel=i;
}
- (void *)(m->do_events)=tpitem_get_event_procedure(i);
+ m->do_events=tpitem_get_event_procedure(i);
tpitem_set_event_procedure(i, tpchoice_notify);
return(1);
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]