Skip to content

Commit 70b81e2

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 70b81e2

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
@@ -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)