summaryrefslogtreecommitdiffstats
path: root/test/libapt/common.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-23 04:10:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-23 04:10:50 +0000
commitfaf78e24948280b25ccad71e5fe027809f8c6279 (patch)
treeeac8c502171ec9b3295e1ed84791d63a2f567666 /test/libapt/common.h
parentAdding upstream version 2.9.1. (diff)
downloadapt-faf78e24948280b25ccad71e5fe027809f8c6279.tar.xz
apt-faf78e24948280b25ccad71e5fe027809f8c6279.zip
Adding upstream version 2.9.2.upstream/2.9.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/libapt/common.h')
-rw-r--r--test/libapt/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libapt/common.h b/test/libapt/common.h
new file mode 100644
index 0000000..d69711d
--- /dev/null
+++ b/test/libapt/common.h
@@ -0,0 +1,11 @@
+/*
+ * GTest is a horribly broken library needing lots of diagnostic overrides,
+ * do them here.
+ */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdouble-promotion"
+#pragma GCC diagnostic ignored "-Wsign-promo"
+#pragma GCC diagnostic ignored "-Wsign-compare"
+#include <gtest/gtest.h>
+#pragma GCC diagnostic pop
+