Re: implicit declaration of datumIsEqual in parse_coerce.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: implicit declaration of datumIsEqual in parse_coerce.c
Дата
Msg-id 27483.1586294218@sss.pgh.pa.us
обсуждение исходный текст
Ответ на implicit declaration of datumIsEqual in parse_coerce.c  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Ответы Re: implicit declaration of datumIsEqual in parse_coerce.c
Список pgsql-hackers
Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> Not sure what changed, but I'm seeing this failure:

> parse_coerce.c: In function ‘coerce_type’:
> parse_coerce.c:345:9: warning: implicit declaration of function ‘datumIsEqual’ [-Wimplicit-function-declaration]
>    345 |    if (!datumIsEqual(newcon->constvalue, val2, false, newcon->constlen))
>        |         ^~~~~~~~~~~~

That's inside "#ifdef RANDOMIZE_ALLOCATED_MEMORY", which probably
explains why most of us aren't seeing it.  My guess is somebody
removed an #include without realizing that this chunk of code
needed it.

            regards, tom lane



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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: [HACKERS] make async slave to wait for lsn to be replayed
Следующее
От: Tom Lane
Дата:
Сообщение: Re: proposal \gcsv