From eaa472158c9c442074616ae29695768c4e211872 Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Wed, 1 Apr 2026 07:52:54 -0300 Subject: [PATCH] plug-ins: Silence deprecation warning about rsvg_handle_set_size_callback --- plug-ins/common/file-svg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plug-ins/common/file-svg.c b/plug-ins/common/file-svg.c index ddf870ca7b..cdcebce1cb 100644 --- a/plug-ins/common/file-svg.c +++ b/plug-ins/common/file-svg.c @@ -984,11 +984,16 @@ load_rsvg_pixbuf (RsvgHandle *handle, src += gdk_pixbuf_get_rowstride (pixbuf); } #else + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" + vals.resolution = resolution; vals.width = width; vals.height = height; rsvg_handle_set_size_callback (handle, load_set_size_callback, (gpointer) &vals, NULL); pixbuf = rsvg_handle_get_pixbuf (handle); + + #pragma GCC diagnostic pop #endif return pixbuf;