diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-03-06 00:33:10 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-03-13 13:58:45 +0100 |
commit | a02db58fd50ef7fc2f0284852c6b3f98e458a232 (patch) | |
tree | ecb7b4ad3252064381414d39782a2e4222368843 /apt-pkg/srcrecords.h | |
parent | 453b82a388013e522b3a1b9fcd6ed0810dab1f4f (diff) |
follow method attribute suggestions by gcc
Git-Dch: Ignore
Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
Diffstat (limited to 'apt-pkg/srcrecords.h')
-rw-r--r-- | apt-pkg/srcrecords.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h index ed69d0d72..9915debfe 100644 --- a/apt-pkg/srcrecords.h +++ b/apt-pkg/srcrecords.h @@ -13,6 +13,7 @@ #ifndef PKGLIB_SRCRECORDS_H #define PKGLIB_SRCRECORDS_H +#include <apt-pkg/macros.h> #include <string> #include <vector> @@ -73,7 +74,7 @@ class pkgSrcRecords //FIXME: Add a parameter to specify which architecture to use for [wildcard] matching virtual bool BuildDepends(std::vector<BuildDepRec> &BuildDeps, bool const &ArchOnly, bool const &StripMultiArch = true) = 0; - static const char *BuildDepType(unsigned char const &Type); + static const char *BuildDepType(unsigned char const &Type) APT_PURE; virtual bool Files(std::vector<pkgSrcRecords::File> &F) = 0; |