]> git.ipfire.org Git - thirdparty/gettext.git/commit
Silence a gcc warning "array subscript ... is partly outside array bounds".
authorBruno Haible <bruno@clisp.org>
Fri, 26 May 2023 22:25:12 +0000 (00:25 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 26 May 2023 22:26:19 +0000 (00:26 +0200)
commit39fe8f24c15d211ba1e04100b03fe2f4a0676e2d
treeac4af1290ef1bb0ecbf3831e9c4bf909119e7523
parent5e3233c0cd15c718ed1011136299d7ca7b9e7961
Silence a gcc warning "array subscript ... is partly outside array bounds".

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add flexmember.
* gettext-tools/src/xg-arglist-parser.h (struct arglist_parser): Use
FLEXIBLE_ARRAY_MEMBER.
* gettext-tools/src/xg-arglist-parser.c: Include flexmember.h.
(arglist_parser_alloc, arglist_parser_clone): Use FLEXNSIZEOF instead of
hand-made size computations.
autogen.sh
gettext-tools/src/xg-arglist-parser.c
gettext-tools/src/xg-arglist-parser.h