RTEMS | cpu and bsps or1k: Address -Wcast-function-type warnings (!974)
Joel Sherrill (@joel)
gitlab at rtems.org
Sat Jan 31 20:08:46 UTC 2026
Joel Sherrill commented on a discussion on cpukit/score/cpu/or1k/cpu.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/974#note_140556
> return (sr & CPU_OR1K_SPR_SR_IEE)? 0 : 1;
> }
>
> -void _CPU_ISR_install_raw_handler(
> +/*
> + * Provide a helper which takes "untyped" pointers to the function
> + * being installed. This avoids function casts which are frowned upon.
> + */
> +static void _CPU_ISR_install_raw_handler_helper(
> uint32_t vector,
> - CPU_ISR_raw_handler new_handler,
> - CPU_ISR_raw_handler *old_handler
> + void *new_handler,
> + void **old_handler
I leave it as an exercise for the reviewer to solve this to their liking.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/974#note_140556
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/20260131/76b277a2/attachment.htm>
More information about the bugs
mailing list