RTEMS | Cannot obtain dates later than 2100 (!339)

Gedare Bloom (@gedare) gitlab at rtems.org
Wed Mar 12 08:04:26 UTC 2025




Gedare Bloom started a new discussion on testsuites/sptests/sptod/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/339#note_120799

 > +  rtems_test_assert( new_tod.minute == the_tod->minute );
 > +  rtems_test_assert( new_tod.second == the_tod->second);
 > +  rtems_test_assert( new_tod.ticks == the_tod->ticks ); 
 > +}
 > +
 > +/*
 > + *  main entry point to the test
 > + */
 > +
 > +rtems_task Init(
 > +  rtems_task_argument argument
 > +)
 > +{
 > +  TEST_BEGIN();
 > +  
 > +  for ( int i = 0;  i < NUMBER_OF_DATES; i++ ) {

Prefer to declare `int i` earlier, at the start of the block scope it is visible within.

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250312/5babd69f/attachment-0001.htm>


More information about the bugs mailing list