Re: printtup.c: error: ‘VARSIZE_ANY’ makes pointer from integer when USE_VALGRIND is defined

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitry Mityugov <d(dot)mityugov(at)postgrespro(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: printtup.c: error: ‘VARSIZE_ANY’ makes pointer from integer when USE_VALGRIND is defined
Date: 2025-08-05 18:17:16
Message-ID: 1128539.1754417836@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dmitry Mityugov <d(dot)mityugov(at)postgrespro(dot)ru> writes:
> When USE_VALGRIND is defined, compilation started to fail with this
> error message (-Werror is used; without it, a warning is observed
> instead):
> printtup.c:353:95: error: passing argument 1 of ‘VARSIZE_ANY’ makes
> pointer from integer without a cast [-Wint-conversion]

Thanks for the report, but I already fixed this a couple hours ago.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-08-05 18:34:44 Re: Convert varatt.h macros to static inline functions
Previous Message Alvaro Herrera 2025-08-05 18:11:41 Re: Test to dump and restore objects left behind by regression