From b2897ab819812060c43ebc9fafa1483b1843536b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 21 Feb 2023 19:41:01 +0100 Subject: Use C++11 [[noreturn]] --- src/patchelf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patchelf.cc b/src/patchelf.cc index 6ea238e..0b7c249 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -167,7 +167,7 @@ struct SysError : std::runtime_error { } }; -__attribute__((noreturn)) static void error(const std::string & msg) +[[noreturn]] static void error(const std::string & msg) { if (errno) throw SysError(msg); -- cgit v1.2.1