Re: [evolution-patches] Fix of lvalue cast in calendar-component.c for GCC4
- From: JP Rosevear <jpr novell com>
- To: Rodrigo Moya <rodrigo novell com>
- Cc: David Malcolm <dmalcolm redhat com>, Evolution Patches <evolution-patches ximian com>
- Subject: Re: [evolution-patches] Fix of lvalue cast in calendar-component.c for GCC4
- Date: Wed, 02 Mar 2005 19:34:36 -0500
On Wed, 2005-03-02 at 12:36 +0100, Rodrigo Moya wrote:
> On Tue, 2005-03-01 at 20:29 -0500, David Malcolm wrote:
> > Attached is a fix I had to apply to get Evolution 2.1.6 to build with
> > GCC 4
> >
> > Here's the error:
> > calendar-component.c: In function 'popup_event_cb':
> > calendar-component.c:562: error: invalid lvalue in assignment
> >
> > The cast looks entirely redundant to me (since ecc_source_popups[0] is
> > already an EPopupItem) and is potentially a bug if it implies creating a
> > temporary EPopupItem and assigning to that - am I missing something?
> >
> right, seems you're right, although I don't get that warning at all with
> gcc 3.3.5. So, looks good to me if it fixes the warning to you
Should this be targetted at 2.2.0 or 2.2.1?
-JP
--
JP Rosevear <jpr novell com>
Novell, Inc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]