mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-07 15:22:07 +08:00
The function cast from more parameters to fewer parameters is generally unsafe as the additional parameters will be undefined values that happen to be in the right registers if it is ever called. Instead of casting the function pointer, provide a dummy function pointer when the original function pointer is non-NULL since it is only ever used for a NULL-check.