https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89072
--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> --- (In reply to Xi Ruoyao from comment #3) > In GCC 14 several warnings will be turned to errors by default with C99 or a > newer C standard. But generally -Werror should *never* be the default. > Besides the reasons Segher and Rich have already given, the standard also > disallows the compiler from randomly rejecting code just because it "looks > suspicious". Huh? Where does the standard require that? The closest to it is 4/8: "An implementation shall be accompanied by a document that defines all implementation-defined and locale-specific characteristics and all extensions." which essentially *allows* such restrictions. It just has to be documented. Of course a good implementation will not reject valid code without a very good reason to do that.