-
Notifications
You must be signed in to change notification settings - Fork 69
Set C std to C17 to avoid errors with gcc 15 #130
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
base: master
Are you sure you want to change the base?
Conversation
I can confirm that this fixes the issue "error: too many arguments to function" with gcc ≥ 15 (#129). It doesn't fix the issue "error: implicit declaration of function" with gcc ≥ 10 (#97). That requires adding a CFLAG as described below and in #97. Using gcc 15.1.0, before this PR, there are "too many arguments to function" errors:
After this PR, it sets
Setting
(That worked for me. @fsidoli reported in #97 that they had to use |
Amended to fix that.
Yes, we can also disable the error/warning with |
Hi,
I think there is no harm in setting the C standard to the version the code actually conforms to at the moment.
Though I'd agree that updating the code to conform to C23 should be the long term goal.
Addresses #129.
Cheers,
Nuno