Ken Takata wrote:

> I had a report from nakinor that compiler warnings occur after 7.4.153.
> 
> E.g.:
> 
> In file included from if_python3.c:773:
> ./if_py_both.h:2331:27: warning: incompatible pointer types passing
>       'PySliceObject *' to parameter of type 'PyObject *'
>       (aka 'struct _object *') [-Wincompatible-pointer-types]
>         if (PySlice_GetIndicesEx((PySliceObject *)idx, ListLength(self),
>                                  ^~~~~~~~~~~~~~~~~~~~
> /usr/local/include/python3.4m/sliceobject.h:43:48: note: passing argument to
>       parameter 'r' here
> PyAPI_FUNC(int) PySlice_GetIndicesEx(PyObject *r, Py_ssize_t length,
> ...
> 
> They occur when Vim is statically linked with Python 3.2 or later.
> The type of the first argument of PySlice_GetIndicesEx was changed in
> Python 3.2 from PySliceObject to PyObject.
> 
> He and I made a patch for this:
> https://gist.github.com/nakinor/9780409

This doesn't work, because PySliceObject_T is used in if_python3.c
before including if_py_both.h.  I'll move the #if to if_python3.c to
make it work.

-- 
The process for understanding customers primarily involves sitting around with
other marketing people and talking about what you would to if you were dumb
enough to be a customer.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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.

Raspunde prin e-mail lui