Closed simonjwright closed 2 years ago
Hi @simonjwright, GCC 12 is not quite on my radar yet and I am not sure when/how we will port Ada Drivers Library. If you have changes that are compatible with both GCC 12 and CE 2021 don't hesitate to send patches :+1:
I can't do the CE 2021 part (not without building the arm-eabi cross) so that won't be happening.
There are quite a few new warnings when compiling the current library with GCC 12. I'm only set up for STM32(F4) and Microbit, and below are the issues I see.
I understand that the
pragma Unreferenced
issue (now intended for variables that are deliberately not referenced at all, e.g. an RAII lock) is best addressed by changing the variable's name from e.g.Status
toUnused
, orDummy
, orStatus_Unused
, orUnused_Status
...A (renamed) variable that isn't referenced should just be deleted.
I would offer to make these changes, but you might prefer to hold off until the problem can be fixed for all the supported devices?