-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
gh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declaration warnings in configure.ac #99406
Conversation
741df47
to
e7d69e1
Compare
cc @erlend-aasland @kumaraditya303, followup from #99085. Apologies for missing a few! As penance, I'm going to do a followup now (but not generate configure yet as it won't be suitable to merge unless/until this is) in another PR for some |
ping |
e7d69e1
to
0287ff9
Compare
…aration fixes Followup to 12078e7. I ended up missing a few, apparently. Clang 16 makes -Wimplicit-function-declaration an error by default and warns on -Wstrict-prototypes. It's free to fix -Wstrict-prototypes while we're here and it futureproofs us, so throw that in. The only notable part of this which might not be super obvious is <stddef.h> for size_t. See: 12078e7
0287ff9
to
0ee1b0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine but I would like a review from @erlend-aasland
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me! Sorry for the delay.
Thanks @thesamesam for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Sorry, @thesamesam and @kumaraditya303, I could not cleanly backport this to |
Sorry @thesamesam and @kumaraditya303, I had trouble checking out the |
@thesamesam Can you create the backports? thanks |
@kumaraditya303 Happy to, thanks folks! |
…eclaration warnings in configure.ac (pythonGH-99406) Follow up to 12078e7. (cherry picked from commit e35ca41)
…eclaration warnings in configure.ac (pythonGH-99406) Follow up to 12078e7. (cherry picked from commit e35ca41) Co-authored-by: Sam James <sam@gentoo.org>
…eclaration warnings in configure.ac (pythonGH-99406) Follow up to 12078e7.. (cherry picked from commit e35ca41) Co-authored-by: Sam James <sam@gentoo.org>
GH-99919 is a backport of this pull request to the 3.11 branch. |
GH-99920 is a backport of this pull request to the 3.10 branch. |
GH-99920 is a backport of this pull request to the 3.10 branch. |
…eclara… (python#99920) [3.10] pythongh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declaration warnings in configure.ac (pythonGH-99406) Follow up to 12078e7. (cherry picked from commit e35ca41) Co-authored-by: Sam James <sam@gentoo.org>
…eclara… (python#99920) [3.10] pythongh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declaration warnings in configure.ac (pythonGH-99406) Follow up to 12078e7. (cherry picked from commit e35ca41) Co-authored-by: Sam James <sam@gentoo.org>
…eclara… (python#99920) [3.10] pythongh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declaration warnings in configure.ac (pythonGH-99406) Follow up to 12078e7. (cherry picked from commit e35ca41) Co-authored-by: Sam James <sam@gentoo.org>
…eclara… (python#99920) [3.10] pythongh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declaration warnings in configure.ac (pythonGH-99406) Follow up to 12078e7. (cherry picked from commit e35ca41) Co-authored-by: Sam James <sam@gentoo.org>
…n fixes
Followup to 12078e7. I ended up missing a few, apparently.
Clang 16 makes -Wimplicit-function-declaration an error by default and warns on -Wstrict-prototypes. It's free to fix -Wstrict-prototypes while we're here and it futureproofs us, so throw that in.
The only notable part of this which might not be super obvious is <stddef.h> for size_t.
See: 12078e7
Signed-off-by: Sam James sam@gentoo.org