https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84299
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Chris from comment #0) > Interestingly this error occurs only with -O3, not without optimization. That's expected, -Wmaybe-uninitialized doesn't do anything otherwise. As the manual says: "These warnings are only possible in optimizing compilation, because otherwise GCC does not keep track of the state of variables."