[Evolution-hackers] Evolution 2.0.4 and GCC-4.0

Zan Lynx zlynx@acm.org
Thu, 03 Mar 2005 12:32:46 -0700


--=-YQ4fyk4Xm8gTgvj5bVYu
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I've been building my Gentoo packages with GCC 4.0 lately and caught
this today.  GCC 4.0 no longer allows using pointer casts on the left of
an assignment.  So you can't do this anymore:
	mbi =3D (CamelMboxMessageInfo *)mi =3D info;

I changed that to take the cast out which left me with a warning
message.  Probably a better fix would be to split it into two
assignments with the cast on the right-hand side.

I found these in
	camel/providers/local/camel-mbox-summary.c:258
	camel/providers/local/camel-maildir-summary.c:282

And since I'm compiling in a 64-bit environment, I discovered a few
warning messages about printing size_t values with a %d format.  But
these all seemed to be debug prints so I figured it didn't matter.
--=20
Zan Lynx <zlynx@acm.org>

--=-YQ4fyk4Xm8gTgvj5bVYu
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCJ2ZeG8fHaOLTWwgRApgFAKCJJFaw9bhR4zqZ2abWjArHLjUuegCggJWP
DAOcW3khVJpTjkxv+2p3kOE=
=hMUf
-----END PGP SIGNATURE-----

--=-YQ4fyk4Xm8gTgvj5bVYu--