Hi,

Op zo 9 jan. 2022 13:58 schreef Bram Moolenaar <[email protected]>:

>
> Patch 8.2.4047
> Problem:    Depending on the build features error messages are unused.
> Solution:   Add #ifdefs. (Dominique Pellé, closes #9493)
> Files:      src/errors.h
>
>
> diff --git a/src/if_py_both.h b/src/if_py_both.h
> index 8e349c55f822..6d7b9687ac81 100644
> --- a/src/if_py_both.h
> +++ b/src/if_py_both.h
> @@ -3789,14 +3789,14 @@ TabPageAttr(TabPageObject *self, char *name)
>  TabPageRepr(TabPageObject *self)
>  {
>      if (self->tab == INVALID_TABPAGE_VALUE)
> -       return PyString_FromFormat("<tabpage object (deleted) at %p>",
> (self));
> +       return PyString_FromFormat("<tabpage object (deleted) at %p>",
> (void *)self);
>      else
>      {
>         int     t = get_tab_number(self->tab);
>
>         if (t == 0)
>             return PyString_FromFormat("<tabpage object (unknown) at %p>",
> -                                       (self));
> +                                       (void *)self);
>         else
>             return PyString_FromFormat("<tabpage %d>", t - 1);
>      }
> @@ -4125,14 +4125,14 @@ WindowSetattr(WindowObject *self, char *name,
> PyObject *valObject)
>  WindowRepr(WindowObject *self)
>  {
>      if (self->win == INVALID_WINDOW_VALUE)
> -       return PyString_FromFormat("<window object (deleted) at %p>",
> (self));
> +       return PyString_FromFormat("<window object (deleted) at %p>",
> (void *)self);
>      else
>      {
>         int     w = get_win_number(self->win, firstwin);
>
>         if (w == 0)
>             return PyString_FromFormat("<window object (unknown) at %p>",
> -
>  (self));
> +
>  (void *)self);
>         else
>             return PyString_FromFormat("<window %d>", w - 1);
>      }
> @@ -5126,7 +5126,7 @@ RangeRepr(RangeObject *self)
>  {
>      if (self->buf->buf == INVALID_BUFFER_VALUE)
>         return PyString_FromFormat("<range object (for deleted buffer) at
> %p>",
> -                                   (self));
> +                                   (void *)self);
>      else
>      {
>         char *name = (char *)self->buf->buf->b_fname;
> @@ -5378,7 +5378,7 @@ BufferRange(BufferObject *self, PyObject *args)
>  BufferRepr(BufferObject *self)
>  {
>      if (self->buf == INVALID_BUFFER_VALUE)
> -       return PyString_FromFormat("<buffer object (deleted) at %p>",
> self);
> +       return PyString_FromFormat("<buffer object (deleted) at %p>",
> (void *)self);
>      else
>      {
>         char    *name = (char *)self->buf->b_fname;
>

You probably noticed already, but this is totally unrelated to the
subject...

Christ van Willegen

>

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CA%2BOt1OwG0G%2BH2W%2Beic8_JoPj2TDzbA9qj-qO5z%3DoeJui3%3DPxRA%40mail.gmail.com.

Raspunde prin e-mail lui