aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2020-10-23 21:40:46 +0200
committerAvatar Marvin Schmidt <marvin.schmidt1987@gmail.com> 2021-12-08 11:42:54 +0000
commit9c8159c28459f2b50ad33dc15f44073d53922c4f (patch)
tree9966464f5e43e6c1d25e029484739dbd222b2110 /ruby
parentf5754fe100cf69bba0f8448f214ddafe2b2ce0c0 (diff)
downloadpaludis-9c8159c28459f2b50ad33dc15f44073d53922c4f.tar.gz
paludis-9c8159c28459f2b50ad33dc15f44073d53922c4f.tar.xz
ruby: Declare cannot_perform_uninstall with attribute 'noreturn'
clang warns about it: ../ruby/action.cc:650:5: error: function 'cannot_perform_uninstall' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn] { ^ 1 error generated.
Diffstat (limited to 'ruby')
-rw-r--r--ruby/action.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby/action.cc b/ruby/action.cc
index 4f842ef81..1161123cb 100644
--- a/ruby/action.cc
+++ b/ruby/action.cc
@@ -20,6 +20,7 @@
#include <paludis_ruby.hh>
#include <paludis/action.hh>
+#include <paludis/util/attributes.hh>
#include <paludis/util/make_named_values.hh>
#include <paludis/standard_output_manager.hh>
#include <ruby.h>
@@ -646,6 +647,7 @@ namespace
}
};
+ PALUDIS_ATTRIBUTE((noreturn))
void cannot_perform_uninstall(const std::shared_ptr<const PackageID> & id, const UninstallActionOptions &)
{
throw InternalError(PALUDIS_HERE, "Can't uninstall '" + stringify(*id) + "'");