Skip to content

rsumtest.c: explicitly return 0#22

Merged
cph6 merged 1 commit into
cph6:masterfrom
uraltun:rsumtest-main-return-int
May 14, 2026
Merged

rsumtest.c: explicitly return 0#22
cph6 merged 1 commit into
cph6:masterfrom
uraltun:rsumtest-main-return-int

Conversation

@uraltun
Copy link
Copy Markdown
Contributor

@uraltun uraltun commented May 12, 2026

Checking the return code of a function that is of type void is undefined behavior. On some arches, checking the return code of main causes the test to fail, so explicitly return 0 instead.

Link to logs of failing builds on

Checking the return code of a function that is of type void is undefined
behavior. On arm64 and s390x, checking the return code of main causes
the test to fail, so explicitly return 0 instead.
@cph6 cph6 merged commit ac2a897 into cph6:master May 14, 2026
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