]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.h
replace ignore-deprecated #pragma dance with _Pragma
[apt.git] / apt-pkg / indexrecords.h
index 88a06779c5292ab9b37063963465e45977c2ab96..06b9dafa68899d5c9076eb4ff575f894c7e49bd4 100644 (file)
@@ -76,11 +76,7 @@ class indexRecords
    virtual ~indexRecords();
 };
 
-#if __GNUC__ >= 4
-       // ensure that con- & de-structor don't trigger this warning
-       #pragma GCC diagnostic push
-       #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
+APT_IGNORE_DEPRECATED_PUSH
 struct indexRecords::checkSum
 {
    std::string MetaKeyFilename;
@@ -89,8 +85,6 @@ struct indexRecords::checkSum
 
    APT_DEPRECATED HashString Hash;
 };
-#if __GNUC__ >= 4
-       #pragma GCC diagnostic pop
-#endif
+APT_IGNORE_DEPRECATED_POP
 
 #endif