Y
Hacker News
new
|
ask
|
show
|
jobs
by
zh3
1579 days ago
Wow, that's annoying. There's a bunch of old code we have that'll need updating (written that way to keep the line lengths down).
3 comments
MawKKe
1579 days ago
...can't you just configure your build system to compile those modules with pre-c23 standard?
link
zh3
1578 days ago
Of course. But one of the great things about C is that as a rule nothing breaks with compiler changes (as long as appropriate care has been taken) which this appears to violate.
link
klyrs
1579 days ago
All the compilers I use have a default C version, and an optional flag to control which version to use. It's a non-issue.
link
rightbyte
1579 days ago
Maybe the compiler will add a extension flag? I mean the K&R declarations still need to be supported in the compiler for earlier standards.
link