Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please explicitly build with -std=gnu89 (at least) so that compilation does not break when gcc/clang get more strict about enforcing C99 syntax #6

Open
sanjayankur31 opened this issue Dec 5, 2022 · 2 comments

Comments

@sanjayankur31
Copy link
Contributor

This is from the downstream Fedora bug here:

https://bugzilla.redhat.com/show_bug.cgi?id=2150772

From the change page:

https://fedoraproject.org/wiki/Changes/PortingToModernC

Back in 1999, a new revision of the C standard removed several backwards compatibility features. However, GCC still accepts these obsolete constructs by default. Support for these constructs is confusing to programmers and potentially affect GCC's ability to implement features from future C standards. It is expected that a future GCC version (likely GCC 14) will disable support for these legacy language constructs by default. The goal of this change is to prepare Fedora for this transition.

For the moment, we're adding -std=gnu89 to the Fedora build:

https://src.fedoraproject.org/rpms/genesis-simulator/c/f33cac2ccc71d1d77cdf6da58c333578616e98c7?branch=rawhide

@genesis-sim
Copy link
Owner

genesis-sim commented Dec 22, 2022 via email

@sanjayankur31
Copy link
Contributor Author

Hi Dave,

Thanks very much. That sounds great. I'll keep an eye on the repo and test out updates to ensure it all continues to build on the different Fedora releases.

Cheers,
Ankur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants