I'd like to add "-Wextra" to tease out more warnings, but the current UNUSED() definition then causes the following(among others):

chip/stm32_irq.c: In function 'stm32_nmi':
chip/stm32_irq.c:175:12: warning: the address of 'irq' will always evaluate as 
'true' [-Waddress]
 175 |  ((void)(1 || &(
     |            ^~

Would there be any issue if I redefined UNUSED() to cast its arg to void instead (or at least for just gcc compilers)?

Thanks in advance!

--
Peter Barada
[email protected]

Reply via email to