Gedare Bloom commented on a discussion on cpukit/rtems/src/clocktodtoseconds.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112442

 >  
 > -
 > -Watchdog_Interval   _TOD_To_seconds(
 > -  const rtems_time_of_day *the_tod
 > -)
 > +Watchdog_Interval _TOD_To_seconds( const rtems_time_of_day *the_tod )
 >  {
 >    uint32_t time;
 >    size_t   leap_year_index;
 >  
 >    time = the_tod->day - 1;
 >  
 > -  leap_year_index = _TOD_Get_leap_year_index( the_tod->year );
 > -  time += _TOD_Days_to_date[ leap_year_index ][ the_tod->month ];
 > +  leap_year_index  = _TOD_Get_leap_year_index( the_tod->year );
 > +  time            += _TOD_Days_to_date[ leap_year_index ][ the_tod->month ];

We can control this with `AlignConseuctiveAssignments.AlignCompound` if we want 
to disable.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112442
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to