From: Eduardo P. H. <eha...@co...> - 2005-08-10 20:28:42
|
On Wed, Aug 10, 2005 at 09:59:11PM +0200, Martin Felis wrote: > Hi, Hi, Martin, >=20 > I had some problems with evolution 2.0, so I gave evolution 2.4 (cvs) a t= ry=20 > and it worked very well for me (the tasks didn't want to work with 2.0). = But=20 > with that new version of evolution-data-server and it's providing develop= ment=20 > files I had problems compiling the evo2-plugin. The evolution-data-server headers I have here (libevolution-data-server4-devel-1.2.3-5mdk, mandriva cooker) generate some warnings on GCC 4.0.1, exactly on the e_contact_get_const() definition, too. Probably it is related to what made that nobody notice the warning you reported, until now. >=20 > evolution2_ebook.c: In function `evo2_addrbook_get_changes': > evolution2_ebook.c:136: warning: initialization discards qualifiers from= =20 > pointer target type. >=20 > Line 136 of evolution2_ebook.c is: > char *uid =3D e_contact_get_const(contact, E_CONTACT_UID); > by replacing it with: > char *uid =3D (char*)e_contact_get_const(contact, E_CONTACT_UID= ); > all went well. Thanks for your report. Actually a more recommended fix is: - char *uid =3D e_contact_get_const(contact, E_CONTAC= T_UID); + const char *uid =3D e_contact_get_const(contact, E_= CONTACT_UID); I've just committed it to the svn repository. --=20 Eduardo |