8000 gh-99086: Build: Fix -Wimplicit-int in PTHREAD_SCOPE_SYSTEM check (#9… · python/cpython@6d9431f · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 6d9431f

Browse files
committed
gh-99086: Build: Fix -Wimplicit-int in PTHREAD_SCOPE_SYSTEM check (#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>
1 parent 871eb42 commit 6d9431f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ``-Wimplicit-int`` warning in configure.ac when testing for PTHREAD_SCOPE_SYSTEM.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3308,7 +3308,7 @@ if test "$posix_threads" = "yes"; then
33083308
void *foo(void *parm) {
33093309
return NULL;
33103310
}
3311-
main() {
3311+
int main() {
33123312
pthread_attr_t attr;
33133313
pthread_t id;
33143314
if (pthread_attr_init(&attr)) return (-1);

0 commit comments

Comments
 (0)
0