]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: use _GL_ATTRIBUTE_NONSTRING attribute to avoid new warnings
authorJim Meyering <meyering@meta.com>
Sun, 6 Apr 2025 14:55:04 +0000 (07:55 -0700)
committerPádraig Brady <P@draigBrady.com>
Mon, 7 Apr 2025 17:47:43 +0000 (18:47 +0100)
commit42f6201aa554fde4c78a3c5d0207d85392eb742e
tree7a91030d78722ae01773b0086ed6f51811e374a6
parentdcfe04eab5c5aed4447ff24dddac9ccd6a35beac
build: use _GL_ATTRIBUTE_NONSTRING attribute to avoid new warnings

Avoid warnings like this from GCC 15:
src/basenc.c:1139:20: error: initializer-string for array of 'char'
truncates NUL terminator but destination lacks 'nonstring' attribute
(9 chars into 8 available) [-Werror=unterminated-string-initialization]
* src/basenc.c (z85_encoding, do_decode): Mark two more variables as
non-terminated.
src/basenc.c