aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-22 15:31:42 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-22 15:31:42 +0000
commit28a4a5d5ca732e7728328967a31a9d0000acb732 (patch)
tree3def3f4ddae6aa4e2c30380339cfb77a5d9df877
parentd3cbb77445129d11d71756c35ea16545f8b2e5c6 (diff)
downloadpaludis-28a4a5d5ca732e7728328967a31a9d0000acb732.tar.gz
paludis-28a4a5d5ca732e7728328967a31a9d0000acb732.tar.xz
Mark things as nonnull where appropriate. Fix unused parameter warnings.
-rw-r--r--paludis/match_package.cc2
-rw-r--r--paludis/match_package.hh6
2 files changed, 5 insertions, 3 deletions
diff --git a/paludis/match_package.cc b/paludis/match_package.cc
index a913d9c..0775eca 100644
--- a/paludis/match_package.cc
+++ b/paludis/match_package.cc
@@ -30,7 +30,7 @@ match_package_internals::do_match(
bool
match_package_internals::do_match(
- const PackageDatabase * const db,
+ const PackageDatabase * const,
const PackageDepAtom * const atom,
const DepListEntry * const entry)
{
diff --git a/paludis/match_package.hh b/paludis/match_package.hh
index c2752b0..c4771ca 100644
--- a/paludis/match_package.hh
+++ b/paludis/match_package.hh
@@ -22,12 +22,14 @@ namespace paludis
bool do_match(
const PackageDatabase * const db,
const PackageDepAtom * const atom,
- const PackageDatabaseEntry * const entry);
+ const PackageDatabaseEntry * const entry)
+ PALUDIS_ATTRIBUTE((nonnull(1, 2, 3)));
bool do_match(
const PackageDatabase * const db,
const PackageDepAtom * const atom,
- const DepListEntry * const entry);
+ const DepListEntry * const entry)
+ PALUDIS_ATTRIBUTE((nonnull(2, 3)));
inline const PackageDatabase * sanitise_db(const PackageDatabase * db)
{