Skip to content

Update "check.c" to be C23 compliant #26009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

arixmkii
Copy link
Contributor

Fixes compilation errors with GCC 15.

GCC 15 defaults to C23 standard, which introduced new keywords (including bool): https://gcc.gnu.org/gcc-15/porting_to.html#c23

Alternative fix would be to change build script to use lower C standard version.

It seems that at some point this file might be removed, because installer would not be responsible for installing dependencies anymore, but for now this fix would allow to build Podman installer with msys2 tooling (they upgraded
GCC to 15).

Does this PR introduce a user-facing change?

None

Fixes compilation errors with GCC 15.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
@l0rd
Copy link
Member

l0rd commented Apr 29, 2025

Thank you @arixmkii. As you know we want to remove check.c but, for now, it makes sense to support C23.
/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2025
Copy link
Contributor

openshift-ci bot commented Apr 29, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arixmkii, l0rd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 29, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 8c78fe2 into containers:main Apr 29, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants