On Wed, Dec 18, 2019 at 08:43:47AM +0100, er wrote:
> gcc (9.2.0) mutters this:
>
> tupconvert.c: In function ‘execute_attr_map_tuple’:
> tupconvert.c:146:8: warning: unused variable ‘outnatts’ [-Wunused-variable]
> 146 | int outnatts = map->outdesc->natts;
> | ^~~~~~~~
>
> (Otherwise compiles & runs fine.)
This one could use a PG_USED_FOR_ASSERTS_ONLY to work properly, but it
is more simple to just remove the variable. Thanks for the report,
Erik.
--
Michael