Skip to content

Commit b89a0f7

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 <[email protected]>
1 parent bf5d168 commit b89a0f7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11134,7 +11134,7 @@ else
1113411134
void *foo(void *parm) {
1113511135
return NULL;
1113611136
}
11137-
main() {
11137+
int main() {
1113811138
pthread_attr_t attr;
1113911139
pthread_t id;
1114011140
if (pthread_attr_init(&attr)) return (-1);

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,7 @@ if test "$posix_threads" = "yes"; then
33673367
void *foo(void *parm) {
33683368
return NULL;
33693369
}
3370-
main() {
3370+
int main() {
33713371
pthread_attr_t attr;
33723372
pthread_t id;
33733373
if (pthread_attr_init(&attr)) return (-1);

0 commit comments

Comments
 (0)