On Mon, Nov 02, 2015 at 07:15:53PM +0100, Tony Mechelynck wrote: > After patches 7.4.904 to .908 I get the following compile warnings: > the first one is for using a deprecated declaration defined in a GDK > include file, so possibly unavoidable;
No: that's the GDK library saying you shouldn't be calling
gdk_pixbuf_new_from_inline() any more, because it's deprecated:
"gdk_pixbuf_new_from_inline has been deprecated since version 2.32 and
should not be used in newly-written code. Use GResource instead."
--
https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-inline
It's vim's code thats calling this function:
> gui_gtk.c: In function ‘add_stock_icon’:
> gui_gtk.c:152:5: warning: ‘gdk_pixbuf_new_from_inline’ is deprecated
> (declared at /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:314)
> [-Wdeprecated-declarations]
> pixbuf = gdk_pixbuf_new_from_inline(data_length, inline_data, FALSE,
> NULL);
> ^
> the other two are for breaking strict aliasing rules in if_py_both.h.
> In file included from if_python.c:825:0:
> if_py_both.h: In function ‘AlwaysFalse’:
> if_py_both.h:479:5: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> Py_INCREF(Py_False);
> ^
> if_py_both.h: In function ‘AlwaysTrue’:
> if_py_both.h:487:5: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> Py_INCREF(Py_True);
> ^
Python has macros for this:
Py_RETURN_TRUE
https://docs.python.org/2/c-api/bool.html#c.Py_RETURN_TRUE
https://docs.python.org/3/c-api/bool.html#c.Py_RETURN_TRUE
Py_RETURN_FALSE
https://docs.python.org/2/c-api/bool.html#c.Py_RETURN_FALSE
https://docs.python.org/3/c-api/bool.html#c.Py_RETURN_FALSE
Those macros do the same thing:
https://github.com/python/cpython/blob/1fe0fd9feb6a4472a9a1b186502eb9c0b2366326/Include/boolobject.h#L25-L26
so I wonder what's going on here.
Marius Gedminas
--
There is a 70% probability of tomorrow. (Actual weatherman quote, 1988)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature
