FW: Patch for

Johnny Willemsen jwillemsen at remedy.nl
Mon Oct 16 19:26:09 UTC 2006


Hi,

With rtems 4.6.6 on linux when building with gcc 4.1.0 (I know this is brand
new) I get the following errors:

../../../../../rtems-4.6.6/c/src/../../cpukit/rtems/src/eventsurrender.c: In
function â_Event_Surrenderâ:
../../../../../rtems-4.6.6/c/src/../../cpukit/rtems/src/eventsurrender.c:67:
error: invalid lvalue in assignment
../../../../../rtems-4.6.6/c/src/../../cpukit/rtems/src/eventsurrender.c:99:
error: invalid lvalue in assignment

On the lines there is:
        (rtems_event_set) the_thread->Wait.count = 0;

Changing it to 
        *(rtems_event_set *)the_thread->Wait.count = 0;

Does fix this, this is the same construct as on line 68 and 100. 

Regards,

Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl  





More information about the users mailing list