Re: [Evolution-hackers] Evolution 2.0.4 and GCC-4.0
- From: Not Zed <notzed ximian com>
- To: Zan Lynx <zlynx acm org>
- Cc: evolution-hackers lists ximian com
- Subject: Re: [Evolution-hackers] Evolution 2.0.4 and GCC-4.0
- Date: Fri, 04 Mar 2005 10:19:00 +0800
You only need to add extra parentheses to fix this. It is just an evaluation order thing, not an lvalue cast.
On Thu, 2005-03-03 at 12:32 -0700, Zan Lynx wrote:
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 = (CamelMboxMessageInfo *)mi = 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]