From 0bbb9de8069fca5685568b9cf475da45da9fc554 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 18 Apr 2021 11:18:10 +0100 Subject: [PATCH] Disable deprecation warnings from librsvg This is a test utility, we don't really care about deprecations. --- test/any2ppm.c | 1 + test/svg2png.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/test/any2ppm.c b/test/any2ppm.c index 8d8d2f2cf..b3f1308ea 100644 --- a/test/any2ppm.c +++ b/test/any2ppm.c @@ -69,6 +69,7 @@ #endif #if CAIRO_CAN_TEST_SVG_SURFACE +#define RSVG_DISABLE_DEPRECATION_WARNINGS #include #ifndef RSVG_CAIRO_H #include diff --git a/test/svg2png.c b/test/svg2png.c index 92c6366aa..5dfbf62ec 100644 --- a/test/svg2png.c +++ b/test/svg2png.c @@ -27,6 +27,9 @@ #include #include + +/* Disable deprecation warnings coming from librsvg */ +#define RSVG_DISABLE_DEPRECATION_WARNINGS #include #define FAIL(msg) \