From b71b8922ef3971e5ccffd1e213888d44abe21d11 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 11 Sep 2023 19:03:35 +0300 Subject: 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/xz/coder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/xz/coder.c') diff --git a/src/xz/coder.c b/src/xz/coder.c index 589ec072..91d40ed2 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -128,7 +128,8 @@ coder_add_filter(lzma_vli id, void *options) } -static void lzma_attribute((__noreturn__)) +tuklib_attr_noreturn +static void memlimit_too_small(uint64_t memory_usage) { message(V_ERROR, _("Memory usage limit is too low for the given " -- cgit v1.2.3