]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: cut: avoid discarded-qualifiers warnings
authorPádraig Brady <P@draigBrady.com>
Tue, 7 Apr 2026 13:35:25 +0000 (14:35 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 7 Apr 2026 13:57:18 +0000 (14:57 +0100)
commit2e7fc39ec16a2204c2abd2de90c8d9ba651d9eda
treea07df2384b5a03faa6f47a99a81a328d1f7fa46c
parentaaae9d0db6cd20d40f50dbc449cedc6dd43c73e7
maint: cut: avoid discarded-qualifiers warnings

Seen on GCC 15.2.1 with GLIBC 2.43 on Arch
Not seen on GCC 15.2.1 on GLIBC 2.42 on Fedora

* src/cut.c (search_bytes): Cast the return from memchr()
to avoid const propagation.
(find_field_delim): Adjust the return from strstr() similarly.
https://github.com/coreutils/coreutils/issues/244
src/cut.c