aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 10:59:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 10:59:05 +0000
commita9536c8114fb5efbb18bd391a03cd65ffb93d6b4 (patch)
tree746702942850b2149a53cdc6b667055c4359d3fd
parentb0d7c0c11c2a0006eed1864b54cca285aaefbe83 (diff)
downloadpaludis-a9536c8114fb5efbb18bd391a03cd65ffb93d6b4.tar.gz
paludis-a9536c8114fb5efbb18bd391a03cd65ffb93d6b4.tar.xz
noreturn where necessary
-rw-r--r--paludis/portage_repository.hh3
-rw-r--r--paludis/qa/environment.hh2
-rw-r--r--paludis/test_environment.hh2
3 files changed, 4 insertions, 3 deletions
diff --git a/paludis/portage_repository.hh b/paludis/portage_repository.hh
index 448b7eb..fe613ff 100644
--- a/paludis/portage_repository.hh
+++ b/paludis/portage_repository.hh
@@ -92,7 +92,8 @@ namespace paludis
virtual void do_install(const QualifiedPackageName &, const VersionSpec &) const;
- virtual void do_uninstall(const QualifiedPackageName &, const VersionSpec &) const;
+ virtual void do_uninstall(const QualifiedPackageName &,
+ const VersionSpec &) const PALUDIS_ATTRIBUTE((noreturn));
virtual DepAtom::Pointer do_system_packages() const;
diff --git a/paludis/qa/environment.hh b/paludis/qa/environment.hh
index 33950b5..7ec4ae1 100644
--- a/paludis/qa/environment.hh
+++ b/paludis/qa/environment.hh
@@ -63,7 +63,7 @@ namespace paludis
return "";
}
- virtual std::string paludis_command() const
+ virtual std::string paludis_command() const PALUDIS_ATTRIBUTE((noreturn))
{
throw InternalError(PALUDIS_HERE, "Cannot use paludis_command in a QA environment");
}
diff --git a/paludis/test_environment.hh b/paludis/test_environment.hh
index 1ff5d28..50a97f3 100644
--- a/paludis/test_environment.hh
+++ b/paludis/test_environment.hh
@@ -51,7 +51,7 @@ namespace paludis
return "";
}
- virtual std::string paludis_command() const
+ virtual std::string paludis_command() const PALUDIS_ATTRIBUTE((noreturn))
{
throw InternalError(PALUDIS_HERE, "Cannot use paludis_command in a test environment");
}