RTEMS | Add timespec_get() support to RTEMS (!670)

Sebastian Huber (@sebhub) gitlab at rtems.org
Wed Aug 20 00:37:52 UTC 2025




Sebastian Huber commented on a discussion on testsuites/psxtests/psxtimes01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/670#note_129072

 >  rtems_task Init(rtems_task_argument argument);
 >  clock_t _times_r(struct _reent *ptr, struct tms  *ptms);
 >  clock_t _times(struct tms  *ptms);
 > +void test_times_functions(void);

Globally visible functions should have exactly one declaration in a header file. To help finding functions for which this is not the case, the `-Wimplicit-function-declaration` is useful. In some tests, function declarations were added to silence this warning. However, these functions should have simply be made static instead. In this case, you can just write the function without a declaration. This produces less code.

For static functions, you normally don't need a separate declaration.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/670#note_129072
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/20250820/fcf81f46/attachment-0001.htm>


More information about the bugs mailing list