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
Fixed Clang -Wstrict-prototypes warnings #2239
Conversation
There may be a problem here. The files ncgeny.c and others are generated |
I changed the .l and .y files too, to match the changes I made in the .c files. It looks to me like regeneration would be ok, but I did not try. |
@seanm thanks! @DennisHeimbigner that's a good point, I think I will add a one-off set of tests to the github actions file that explicitly regenerates those generated files we depend upon, to ensure that any changes to the For this PR, I will pull the changes into a local branch, regenerate via Thanks again! |
@seanm Are you able to sign the license agreement (CLA)?
|
It is probably ok. But bison and flex generate code (including prototypes) not |
@WardF did I sign it correctly? Anything else needed to get this merged? |
You did, thank you! |
Great, thanks. You might want to consider enabling this warning on your CI, if you have a clang that supports it... |
Not a bad idea, thanks! |
Clang is considering making this warning an error by default: https://discourse.llvm.org/t/rfc-enabling-wstrict-prototypes-by-default-in-c/60521