https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60770
--- Comment #14 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Orgad Shaneh from comment #13) > The case described in comment 1 doesn't issue a warning with GCC 10. It does for me with -Wall -O (you need at least some optimization). If there is still a problem, you need to open a new issue.