[librsvg] Fix rsvg.h causing an "internal" deprated warning



commit 2aad12dc58e4f99642683970d26839dedc0ef4ae
Author: Hans de Goede <jwrdegoede fedoraproject org>
Date:   Sat Dec 10 21:04:49 2011 +0100

    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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=665905

 rsvg.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rsvg.h b/rsvg.h
index 40207cd..02c64b6 100644
--- a/rsvg.h
+++ b/rsvg.h
@@ -205,7 +205,7 @@ void rsvg_handle_free (RsvgHandle * handle);
  *
  * 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 /* RSVG_DEPRECATED */ void (*RsvgSizeFunc) (gint * width, gint * height, gpointer user_data);
 
 RSVG_DEPRECATED
 void rsvg_handle_set_size_callback (RsvgHandle * handle,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]