Obsolete C for you and me
Obsolete C for you and me
Posted Dec 9, 2023 17:37 UTC (Sat) by ballombe (subscriber, #9523)In reply to: Obsolete C for you and me by mb
Parent article: Modern C for Fedora (and the world)
Why ?
2) They are maintained and already build with -Wall so that these legacy problems don't exist.
False: -Wall does not prevent commits that generate a warning to be pushed to a GIT repository.
Especially if the CI system only test the tip of branch, not all the intermediary commits.
In any large code large code base there will always be some small percentage of commit that generate warnings.
Beside, maintainers come and go and making the live of new maintainers miserable by pretending they are responsible for the state of the repository before they took over maintenance do not serve anyone purpose.
Most current C project have their own memory management system (if only to deal with out of memory) which will likely need to do conversion between pointers of different type. It is quite easy to miss a cast (especially when the rules for C++ and C are different).
