From ccaaff406fbe4df4bafc9960f13d91896cff3e21 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 10 Oct 2022 08:55:10 -0400 Subject: [PATCH] testsuite: Ignore deprecations Some of our tests use deprecated style context apis. Ignore the deprecations for now. --- testsuite/css/change/test-css-change.c | 2 ++ testsuite/css/nodes/test-css-nodes.c | 1 + testsuite/css/style/test-css-style.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/testsuite/css/change/test-css-change.c b/testsuite/css/change/test-css-change.c index 24650fa4c2..9d918ebfb6 100644 --- a/testsuite/css/change/test-css-change.c +++ b/testsuite/css/change/test-css-change.c @@ -23,6 +23,8 @@ #include #include "testsuite/testutils.h" +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + #ifdef G_OS_WIN32 # include #endif diff --git a/testsuite/css/nodes/test-css-nodes.c b/testsuite/css/nodes/test-css-nodes.c index d8dd50471e..038f9daf58 100644 --- a/testsuite/css/nodes/test-css-nodes.c +++ b/testsuite/css/nodes/test-css-nodes.c @@ -27,6 +27,7 @@ # include #endif +G_GNUC_BEGIN_IGNORE_DEPRECATIONS static char * test_get_reference_file (const char *ui_file) diff --git a/testsuite/css/style/test-css-style.c b/testsuite/css/style/test-css-style.c index 68e8bfefcf..7875b94838 100644 --- a/testsuite/css/style/test-css-style.c +++ b/testsuite/css/style/test-css-style.c @@ -27,6 +27,8 @@ # include #endif +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + /* There shall be no other styles */ #define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT