RTEMS | cpu and bsps or1k: Address -Wcast-function-type warnings (!974)

Gedare Bloom (@gedare) gitlab at rtems.org
Sat Jan 31 20:02:12 UTC 2026




Gedare Bloom started a new discussion on cpukit/score/cpu/or1k/cpu.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/974#note_140553

 >    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

This change seems to be worsening the condition, by removing the type information.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/974#note_140553
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/3146148c/attachment-0001.htm>


More information about the bugs mailing list