Skip to content

C23 const fixes - #901

Merged
Johannes Schindelin (dscho) merged 2 commits into
vfs-2.54.0from
c23-const-fixes
Apr 28, 2026
Merged

C23 const fixes#901
Johannes Schindelin (dscho) merged 2 commits into
vfs-2.54.0from
c23-const-fixes

Conversation

@dscho

Copy link
Copy Markdown
Member

This ports the two patches from #900 that were not backports to vfs-2.54.0, to appease the C23 const rules of strchr()/strrchr()/memchr() (which are now in effect due to Fedora 44 being used in fedora-breaking-changes.

Accommodate for C23 enforcing `const`-ness of `strchr()`'s return value.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
We need to accommodate for C23 being very strict about the `const`-ness of the
return value of the `strchr()` function.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Johannes Schindelin (dscho) merged commit 2bb9f4f into vfs-2.54.0 Apr 28, 2026
267 of 269 checks passed
@dscho
Johannes Schindelin (dscho) deleted the c23-const-fixes branch April 28, 2026 16: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