https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117046
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- As documented in the manual, memcpy((void*)&dst, &bytes, sizeof(dst)) will avoid the warning.
redi at gcc dot gnu.org via Gcc-bugs Wed, 09 Oct 2024 04:24:43 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117046
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- As documented in the manual, memcpy((void*)&dst, &bytes, sizeof(dst)) will avoid the warning.