]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/defines.h: Add NORETURN attribute macro
authorAlejandro Colomar <alx@kernel.org>
Tue, 7 Feb 2023 18:39:36 +0000 (19:39 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 9 Feb 2023 04:01:01 +0000 (22:01 -0600)
commitb34387745afc180fd03ebca5a6ee00f3d665c657
tree8ff5a17354fea2c2f9575a973a696299f6836483
parente762ab8b54eab539952a136296be9a9bd6132444
lib/defines.h: Add NORETURN attribute macro

We could use the standard (C11) _Noreturn qualifier, but it will be
deprecated in C23, and replaced by C++'s [[noreturn]], which is
compatible with the GCC attribute, so let's directly use the attribute,
and in the future we'll be able to switch to [[]].

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/defines.h