News for hackers. Stuff that matters.
Re:GCC 14.1 Release by cozzyd on Tuesday May 07, 2024 @10:37AM (#40286027)
it would be nice if they provided a gcc-ancient-compat or something though it's easy enough to create an alias with the correct flags.
Re:GCC 14.1 Release by Phyx on Tuesday May 07, 2024 @11:50AM (#40287249)
-std=gnu98 works. ie explicitly telling it your code is not modern C.
Re:GCC 14.1 Release by mid-kid on Tuesday May 07, 2024 @05:20PM (#40291645)
The new flags apply regardless of -std value, as does -fno-common
Re:GCC 14.1 Release by Phyx on Tuesday May 07, 2024 @09:14PM (#40293371)
Uhh no they don't, and it's explicitly documented under https://gcc.gnu.org/gcc-14/porting_to.html in "Turning errors back into warnings".

Futher more every warning Explains why the std value affects them.