From dd4d716deb18da1f4336d88e8007456ab4d31303 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 26 Feb 2013 20:09:31 -0800 Subject: fix nonnull attribute Parameter 1 is the implicit this provided by C++ in instance methods. Offset the parameter index to account for the thiscall method. --- paludis/hooker.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paludis/hooker.hh b/paludis/hooker.hh index 322e0abff..d64898d40 100644 --- a/paludis/hooker.hh +++ b/paludis/hooker.hh @@ -96,7 +96,7 @@ namespace paludis ///\name Basic operations ///\{ - Hooker(const Environment * const) PALUDIS_ATTRIBUTE((nonnull(1))); + Hooker(const Environment * const) PALUDIS_ATTRIBUTE((nonnull(2))); ~Hooker(); Hooker(const Hooker &) = delete; -- cgit v1.2.3