]> git.ipfire.org Git - thirdparty/tar.git/commit
tar: make safe for -Wunused-parameter
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Jun 2023 20:54:14 +0000 (13:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Jun 2023 21:28:36 +0000 (14:28 -0700)
commit2ccd643d01315f51fe172454bf716e3fa4952762
treebec3709ce9bce450c00486b32cfc164d369fe1c9
parentfdff045d4b4fa3d071071a8add96a347c85c59a9
tar: make safe for -Wunused-parameter

This also ports to C23 [[maybe_unused]].
* configure.ac (WARN_CFLAGS): Do not add -Wno-unused-parameter.
Add MAYBE_UNUSED where needed in source code.
Also, put it at the front where C23 requires it.
14 files changed:
configure.ac
src/buffer.c
src/common.h
src/compare.c
src/create.c
src/exclist.c
src/extract.c
src/list.c
src/names.c
src/sparse.c
src/tar.c
src/xattrs.c
src/xattrs.h
src/xheader.c