RTEMS | bsps/arm/xilinx-zynq/start/bspsmp.c: fix unused parameter warning (!822)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed Nov 5 19:39:58 UTC 2025
Gedare Bloom started a new discussion on bsps/arm/xilinx-zynq/start/bspsmp.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/822#note_135703
> _ARM_Data_synchronization_barrier();
> _ARM_Instruction_synchronization_barrier();
> _ARM_Send_event();
> + /* Avoid unused parameter warning if build without assertions */
> + (void)cpu_index;
add space between `(void) cpu_index;`
I would also put it up toward the top, such as after the `_Assert`. The comment is not necessary.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/822#note_135703
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/20251105/938b559c/attachment.htm>
More information about the bugs
mailing list