Ticket #47474

configure: pthreads test passing NULL as nonnull parameter

Open Date: 2023-02-22 11:47 Last Update: 2023-03-08 10:31

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
2

Details

From build logs:

conftest.c:115:45: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
return pthread_create(NULL, NULL, NULL, NULL);

conftest.c:115:45: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
return pthread_create(NULL, NULL, NULL, NULL);

These refer to third and fourth parameters. This might be just cosmetic, but I can't say for sure that under no circumstances (especially with -Werror involved) this would not cause configure to incorrectly reject pthreads.

Ticket History (3/5 Histories)

2023-02-22 11:47 Updated by: cazfi
  • New Ticket "configure: pthreads test passing NULL as nonnull parameter" created
2023-03-03 13:29 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
  • Milestone Update from (None) to 3.0.7 (closed)
Comment

Patch also for S2_6 attached.

2023-03-08 10:31 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login