From 217958d88713b5dc73d366d24dd64b2b311b86fe 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/hardware.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/xz/hardware.h') diff --git a/src/xz/hardware.h b/src/xz/hardware.h index 2bb3d7ba..a67b26ef 100644 --- a/src/xz/hardware.h +++ b/src/xz/hardware.h @@ -71,4 +71,5 @@ extern bool hardware_memlimit_mtenc_is_default(void); extern uint64_t hardware_memlimit_mtdec_get(void); /// Display the amount of RAM and memory usage limits and exit. -extern void hardware_memlimit_show(void) lzma_attribute((__noreturn__)); +tuklib_attr_noreturn +extern void hardware_memlimit_show(void); -- cgit v1.2.3