From: Carlo Arenas Date: Sun, 14 Nov 2021 19:01:24 GMT Subject: Re: Is 'for (int i = [...]' bad for C STD compliance reasons? Message-ID: In-Reply-To: <211114.86zgq6si94.gmgdl@evledraar.gmail.com> On Sun, Nov 14, 2021 at 10:31 AM Ævar Arnfjörð Bjarmason wrote: > > The issue on CentOS 6 isn't one of incompatibility with C99, but that > the version of GCC refuses to compile C99 code without -std=c99 or > -std=gnu99. See [1] downthread of one of your links. FWIW while CentOS 6 is EOL, CentOS 7 (gcc 4.8.5) is also affected and has at least one more year of "support". You are correct that without a specific -std flag the build will break, and unlike what is expected from all other C99 features that were supported by gnu89 (the default until gcc >= 5) and that are currently in use. The fact that the pedantic rollout went smoothly is encouraging in that respect, but take into consideration that is also limited only to DEVELOPER=1. Carlo PS. there is a CI job in travis but travis is dead