CMSIS_6 icon indicating copy to clipboard operation
CMSIS_6 copied to clipboard

Issue with ICACHE with GCC compiler

Open djemaiMohamed opened this issue 1 year ago • 1 comments

https://github.com/ARM-software/CMSIS_6/blob/8c4dc58928b3347f6aa98b6fb2bf6770f32a72b7/CMSIS/Core/Include/m-profile/armv7m_cachel1.h#L356

The same issue mentioned here https://github.com/ARM-software/CMSIS_5/issues/1680

djemaiMohamed avatar Oct 21 '24 15:10 djemaiMohamed

Hi @djemaiMohamed,

I guess you are using compiler settings reading all warnings as errors. The function should compile just fine even if parameters are actually unused. I agree, that we could silence the warnings/errors by introducing void casts.

Would you raise your fix as a pull-request to CMSIS 6? I'd be happy accept your contribution.

Thanks, Jonatan

JonatanAntoni avatar Oct 28 '24 14:10 JonatanAntoni