diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-02-21 19:41:01 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2023-02-21 19:41:01 +0100 |
commit | b2897ab819812060c43ebc9fafa1483b1843536b (patch) | |
tree | 9597de3df43953e500f57edd1e9e941e9dab6c61 | |
parent | e8832294372f0e7c69948d701f3613183a4f78a2 (diff) | |
download | patchelf-b2897ab819812060c43ebc9fafa1483b1843536b.tar.gz |
Use C++11 [[noreturn]]
-rw-r--r-- | src/patchelf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |