summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-02-21 19:41:01 +0100
committerChristian Göttsche <cgzones@googlemail.com>2023-02-21 19:41:01 +0100
commitb2897ab819812060c43ebc9fafa1483b1843536b (patch)
tree9597de3df43953e500f57edd1e9e941e9dab6c61
parente8832294372f0e7c69948d701f3613183a4f78a2 (diff)
downloadpatchelf-b2897ab819812060c43ebc9fafa1483b1843536b.tar.gz
Use C++11 [[noreturn]]
-rw-r--r--src/patchelf.cc2
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);