aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-26 10:48:23 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-26 10:48:23 +0000
commitd4be8eee397a36b3b06d23e3d0b5c2d5e883417e (patch)
treead3bb42fd673549c5ac5c08b8ff5f92c708713de
parent6470bc7028517d8db93b8725cf3570d313bc7a0c (diff)
downloadpaludis-d4be8eee397a36b3b06d23e3d0b5c2d5e883417e.tar.gz
paludis-d4be8eee397a36b3b06d23e3d0b5c2d5e883417e.tar.xz
Trick gcc into not showing noreturn warnings for our not implemented error.
-rw-r--r--paludis/portage_repository.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index 5469e23..37e9e08 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -285,7 +285,8 @@ PortageRepository::do_package_names(const CategoryNamePart & c) const
need_virtual_names();
/// \todo
- throw InternalError(PALUDIS_HERE, "not implemented");
+ if (! stringify(c).empty())
+ throw InternalError(PALUDIS_HERE, "not implemented");
return QualifiedPackageNameCollection::Pointer(new QualifiedPackageNameCollection);
}