]> git.ipfire.org Git - thirdparty/tar.git/commit
maint: port to Fedora 33
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Feb 2021 00:41:12 +0000 (16:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Feb 2021 00:42:49 +0000 (16:42 -0800)
commit8378991cba68d4adf74f3cec3d6ab07ed2e325d0
treef55d9c806e98125918c405256244a7446bf3155a
parentfa6d317bc73404c24eab4d045a962126438f403b
maint: port to Fedora 33

Fedora 33 uses GCC 10.2.1, which is a bit pickier.
* configure.ac: Do not use -Wsystem-headers, as this
runs afoul of netdb.h on Fedora 33.
* gnulib.modules: Add ‘attribute’.
* lib/wordsplit.c (wsnode_new): Return the newly allocated
pointer instead of a boolean, to pacify GCC 10.2.1 which otherwise
complains about use of possibly-null pointers.  All uses changed.
* src/buffer.c (try_new_volume): Don’t assume find_next_block succeeds.
(_write_volume_label): Pacify GCC 10.2.1 with an ‘assume’, since
LABEL must be nonnull here.
* src/common.h (FALLTHROUGH): Remove; now in attribute.h.
Include attribute.h, for ATTRIBUTE_NONNULL.
* src/misc.c (assign_string_or_null): New function,
taking over the old role of assign_string.
(assign_string): Assume VALUE is non-null.
(assign_null): New function, taking over the old
role of assign_string when its VALUE was nonnull.
All callers of assign_string changed to use these functions.
(assign_string_n): Clear *STRING if VALUE is null,
to fix a potential double-free.
configure.ac
gnulib.modules
lib/wordsplit.c
src/buffer.c
src/common.h
src/extract.c
src/misc.c