https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
David Crocker <dcrocker at eschertech dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcrocker at eschertech dot com --- Comment #16 from David Crocker <dcrocker at eschertech dot com> --- 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.