summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/error.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-12-19 14:27:21 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-12-19 14:27:21 +0100
commit201d1fa0d25deeda77c2570ee5342eaf18499699 (patch)
tree82e81c10467a40ee08f7ebdbe19409b52adff532 /apt-pkg/contrib/error.h
parent7d15572bc3124b15c043e38bdc3d90bcc94f108a (diff)
mark the Error/Warning method as __cold
Diffstat (limited to 'apt-pkg/contrib/error.h')
-rw-r--r--apt-pkg/contrib/error.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/apt-pkg/contrib/error.h b/apt-pkg/contrib/error.h
index a3be6a575..d92e40e9c 100644
--- a/apt-pkg/contrib/error.h
+++ b/apt-pkg/contrib/error.h
@@ -52,6 +52,7 @@
#endif
#include <string>
+#include <system.h>
using std::string;
@@ -71,13 +72,13 @@ class GlobalError
public:
// Call to generate an error from a library call.
- bool Errno(const char *Function,const char *Description,...) APT_MFORMAT2;
- bool WarningE(const char *Function,const char *Description,...) APT_MFORMAT2;
+ bool Errno(const char *Function,const char *Description,...) APT_MFORMAT2 __cold;
+ bool WarningE(const char *Function,const char *Description,...) APT_MFORMAT2 __cold;
/* A warning should be considered less severe than an error, and may be
ignored by the client. */
- bool Error(const char *Description,...) APT_MFORMAT1;
- bool Warning(const char *Description,...) APT_MFORMAT1;
+ bool Error(const char *Description,...) APT_MFORMAT1 __cold;
+ bool Warning(const char *Description,...) APT_MFORMAT1 __cold;
// Simple accessors
inline bool PendingError() {return PendingFlag;};