]> git.ipfire.org Git - thirdparty/tar.git/commit
Port to strict C99 struct hack
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Jun 2023 23:34:19 +0000 (16:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Jun 2023 00:12:40 +0000 (17:12 -0700)
commitc542d3d0c8a845dfe6bf6f1c7b5279354c1ceeed
tree6ecf8ef0d6c9c314378b08026536da381e3b2939
parent4c7a3798d8f04a153a3c15d7cf4f6f7511f4b74f
Port to strict C99 struct hack

Portability bug caught by GCC 13 -fstrict-flex-arrays.
* gnulib.modules: Add flexmember.
* src/create.c (struct link):
* src/exclist.c (struct excfile):
* src/extract.c (struct delayed_link, struct string_list):
Include <flexmember.h>.  Use FLEXIBLE_ARRAY_MEMBER, for
portability to strict C99 or later.  All storage
allocations changed to use FLEXNSIZEOF.
gnulib.modules
src/create.c
src/exclist.c
src/extract.c