Re: pgsql: Refactor attribute mappings used in logical tupleconversion

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgsql: Refactor attribute mappings used in logical tupleconversion
Дата
Msg-id 20191218081514.GA325369@paquier.xyz
обсуждение исходный текст
Ответ на Re: pgsql: Refactor attribute mappings used in logical tupleconversion  (er <er@xs4all.nl>)
Список pgsql-committers
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

Вложения

В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add .editorconfig
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: pgsql: Partially deduplicate interrupt handling for background processe