summaryrefslogtreecommitdiff
path: root/apt-pkg/indexrecords.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/indexrecords.h')
-rw-r--r--apt-pkg/indexrecords.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/apt-pkg/indexrecords.h b/apt-pkg/indexrecords.h
index 88a06779c..06b9dafa6 100644
--- a/apt-pkg/indexrecords.h
+++ b/apt-pkg/indexrecords.h
@@ -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