aboutsummaryrefslogtreecommitdiff
path: root/src/xz/options.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-09-11 19:03:35 +0300
committerJia Tan <jiat0218@gmail.com>2023-10-31 01:03:25 +0800
commitb71b8922ef3971e5ccffd1e213888d44abe21d11 (patch)
tree2542fa029c9355df034f8a724a7cce7c587c348c /src/xz/options.c
parentRemove incorrect uses of __attribute__((__malloc__)). (diff)
downloadxz-b71b8922ef3971e5ccffd1e213888d44abe21d11.tar.xz
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".
Diffstat (limited to 'src/xz/options.c')
-rw-r--r--src/xz/options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xz/options.c b/src/xz/options.c
index f4662131..4d5e899c 100644
--- a/src/xz/options.c
+++ b/src/xz/options.c
@@ -241,7 +241,8 @@ enum {
};
-static void lzma_attribute((__noreturn__))
+tuklib_attr_noreturn
+static void
error_lzma_preset(const char *valuestr)
{
message_fatal(_("Unsupported LZMA1/LZMA2 preset: %s"), valuestr);