-
-
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 implicit int warning in configure check for PTHREAD_SCOPE_SYSTEM (#99085) #99085
Conversation
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
…ck (python#99085) Clang 16 makes -Wimplicit-int fatal by default. Avoids errors like: ``` conftest.c:142:7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ``` Signed-off-by: Sam James <sam@gentoo.org>
…ck (python#99085) Clang 16 makes -Wimplicit-int fatal by default. Avoids errors like: ``` conftest.c:142:7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ``` Signed-off-by: Sam James <sam@gentoo.org>
…ck (python#99085) Clang 16 makes -Wimplicit-int fatal by default. Avoids errors like: ``` conftest.c:142:7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ``` Signed-off-by: Sam James <sam@gentoo.org>
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.
LGTM
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.
One small nit regarding the NEWS entry. The AC fix is fine with me, but IMO using AC_LANG_PROGRAM
iso. AC_LANG_SOURCE
would have been better.
Misc/NEWS.d/next/Build/2022-11-04-02-58-10.gh-issue-99086.DV_4Br.rst
Outdated
Show resolved
Hide resolved
These warnings became fatal by default in Clang 16. Most of this has since been fixed upstream but python#99085 is pending. Signed-off-by: Sam James <sam@gentoo.org>
Ah, that's a fair point. I've got an absolute tonne of these to fix (https://lwn.net/SubscriberLink/913505/b61bbc0c4296117f/) so I've been trying to make non-invasive changes. Is it alright if I leave this one as-is? |
Yeah, leave this as it is. We can get rid of |
Thanks @thesamesam for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Sorry, @thesamesam and @erlend-aasland, I could not cleanly backport this to |
Sorry @thesamesam and @erlend-aasland, I had trouble checking out the |
… check for PTHREAD_SCOPE_SYSTEM (pythonGH-99085) (cherry picked from commit 12078e7) Co-authored-by: Sam James <sam@cmpct.info>
… check for PTHREAD_SCOPE_SYSTEM (pythonGH-99085) (cherry picked from commit 12078e7) Co-authored-by: Sam James <sam@cmpct.info>
GH-99118 is a backport of this pull request to the 3.11 branch. |
GH-99119 is a backport of this pull request to the 3.10 branch. |
Thank you! |
…ck (python#99085) Clang 16 makes -Wimplicit-int fatal by default. Avoids errors like: ``` conftest.c:142:7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ``` Signed-off-by: Sam James <sam@gentoo.org>
…ck (python#99085) Clang 16 makes -Wimplicit-int fatal by default. Avoids errors like: ``` conftest.c:142:7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ``` Signed-off-by: Sam James <sam@gentoo.org>
…ck (python#99085) Clang 16 makes -Wimplicit-int fatal by default. Avoids errors like: ``` conftest.c:142:7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ``` Signed-off-by: Sam James <sam@gentoo.org>
…ck (python#99085) Clang 16 makes -Wimplicit-int fatal by default. Avoids errors like: ``` conftest.c:142:7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ``` Signed-off-by: Sam James <sam@gentoo.org>
Clang 16 makes -Wimplicit-int fatal by default.
Avoids errors like:
Signed-off-by: Sam James sam@gentoo.org