[Spice-devel] [client v2 2/3] spicy: Temporarily ignore deprecation warnings

Christophe Fergeau cfergeau at redhat.com
Thu Dec 1 12:24:23 UTC 2016


I think I'd handle this one similarly to the vala warnings:

diff --git a/src/Makefile.am b/src/Makefile.am
index 3f81866..66e3c64 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -402,10 +402,12 @@ spicy_LDADD =                                             \
        $(LIBM)                                         \
        $(NULL)

+# FIXME: GtkAction and lots of GtkUI APIs are deprecated
 spicy_CPPFLAGS =                       \
        $(AM_CPPFLAGS)                  \
        $(GTHREAD_CFLAGS)               \
        -DSPICE_DISABLE_DEPRECATED      \
+       -Wno-deprecated-declarations    \
        $(NULL)



On Wed, Nov 23, 2016 at 07:09:20AM +0100, Francois Gouget wrote:
> GtkAction and lots of GtkUI APIs are deprecated.
> 
> Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
> ---
>  src/spicy.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/spicy.c b/src/spicy.c
> index c502428..c4a6c7d 100644
> --- a/src/spicy.c
> +++ b/src/spicy.c
> @@ -38,6 +38,9 @@
>  
>  #include "spicy-connect.h"
>  
> +/* FIXME: GtkAction and lots of GtkUI APIs are deprecated */
> +G_GNUC_BEGIN_IGNORE_DEPRECATIONS
> +
>  typedef struct spice_connection spice_connection;
>  
>  enum {
> -- 
> 2.10.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161201/d0c0ed8a/attachment.sig>


More information about the Spice-devel mailing list