Skip to content

Harden configure default C program for C23 compatibility#168

Merged
xavierleroy merged 1 commit intoocaml:masterfrom
MisterDA:fix-configure-c-main
Mar 11, 2026
Merged

Harden configure default C program for C23 compatibility#168
xavierleroy merged 1 commit intoocaml:masterfrom
MisterDA:fix-configure-c-main

Conversation

@MisterDA
Copy link
Contributor

@MisterDA MisterDA commented Mar 3, 2026

C compiler may warn in C23 if the function does not specify void. Make the program return 0 (success) if it is ever executed.

C compiler may warn in C23 if the function does not specify void.
Make the program return 0 (success) if it is ever executed.
Copy link
Contributor

@xavierleroy xavierleroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the patch!

@xavierleroy xavierleroy merged commit 386170f into ocaml:master Mar 11, 2026
@MisterDA MisterDA deleted the fix-configure-c-main branch March 11, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants