https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97658
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Nonsense. Your code is buggy, the warning tells you about it. If you don't want to know that your code has undefined behaviour, don't enable warnings.