]> git.saurik.com Git - apt.git/commitdiff
mark the Error/Warning method as __cold
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 19 Dec 2009 13:27:21 +0000 (14:27 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 19 Dec 2009 13:27:21 +0000 (14:27 +0100)
apt-pkg/contrib/error.h

index a3be6a575846938d35c82f98bc50334d903d9be0..d92e40e9c8a0f212853902978ffccfeaed600abf 100644 (file)
@@ -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;};