https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
--- Comment #17 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to David Crocker from comment #16) > This issue is not specific to AVR target. I get the same spurious warning > from gcc 12.2 arm-none-eabi when I compile the following code for ARM Cortex > M0+ and M4 targets: > > const char *bootloaderVersionText = *reinterpret_cast<const char**>(0x20); > > I haven't found a workaround other than to use a pragma to disable the > warning for that line of code. The change in your build would be --param=min-pagesize=0 . I made a mention of this a few times in this bug report on why avr is different from arm here.