Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cozzyd
· 2y ago · 0 comments
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.
Comments
[–]
Phyx
2y ago
-std=gnu98 works. ie explicitly telling it your code is not modern C.
[–]
mid-kid
2y ago
The new flags apply regardless of -std value, as does -fno-common
[–]
Phyx
2y ago
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.