librsvg2/librsvg-2.35.0-fix-depcr-warning.patch

23 lines
1018 B
Diff
Raw Normal View History

Fix rsvg.h causing an "internal" deprated warning
Before this patch rsvg.h marks the RsvgSizeFunc *type* as deprecated, and
then uses it to declare other deprecated functions, causing gcc to always
emit a depecrated warning as soon as rsvg.h is included. This breaks
compilation of apps which compile with -Werror.
Fix this by not making the RsvgSizeFunc type deprecated, but leaving
the function prototypes using it as deprecated.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
--- librsvg-2.35.0/rsvg.h~ 2011-11-10 19:22:34.000000000 +0100
+++ librsvg-2.35.0/rsvg.h 2011-12-10 09:11:30.525804670 +0100
@@ -203,7 +203,7 @@ void rsvg_handle_free (RsvgHandle * hand
*
* Deprecated: Set up a cairo matrix and use rsvg_handle_render_cairo() instead.
*/
-typedef RSVG_DEPRECATED void (*RsvgSizeFunc) (gint * width, gint * height, gpointer user_data);
+typedef void (*RsvgSizeFunc) (gint * width, gint * height, gpointer user_data);
RSVG_DEPRECATED
void rsvg_handle_set_size_callback (RsvgHandle * handle,