]> git.ipfire.org Git - thirdparty/xz.git/commit
xz, xzdec, lzmainfo: Use tuklib_attr_noreturn.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 11 Sep 2023 16:03:35 +0000 (19:03 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 22 Sep 2023 17:06:27 +0000 (20:06 +0300)
commit217958d88713b5dc73d366d24dd64b2b311b86fe
tree47db7ba64a4b2c72ac32623dd296cb3757038fdb
parent18a66fbac031c98f9c2077fc88846e4d07849197
xz, xzdec, lzmainfo: Use tuklib_attr_noreturn.

For compatibility with C23's [[noreturn]], tuklib_attr_noreturn
must be at the beginning of declaration (before "extern" or
"static", and even before any GNU C's __attribute__).

This commit also moves all other function attributes to
the beginning of function declarations. "extern" is kept
at the beginning of a line so the attributes are listed on
separate lines before "extern" or "static".
src/lzmainfo/lzmainfo.c
src/xz/coder.c
src/xz/hardware.h
src/xz/message.h
src/xz/options.c
src/xz/util.h
src/xzdec/xzdec.c