pgsql: Ensure that length argument of memcmp() isn't seen as negative.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Ensure that length argument of memcmp() isn't seen as negative.
Дата
Msg-id E1nK6J5-0001rN-Kl@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Ensure that length argument of memcmp() isn't seen as negative.  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
Ensure that length argument of memcmp() isn't seen as negative.

I think this will shut up a weird warning from buildfarm member
serinus.  Perhaps it'd be better to change tsCompareString's
length arguments to unsigned, but that seems more invasive
than is justified.

Part of a general push to remove off-the-beaten-track warnings
where we can easily do so.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3b0ee7f583dc347c4aecb57d35830d2f99956e5c

Modified Files
--------------
src/backend/utils/adt/tsvector_op.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Ensure that the argument of shmdt(2) is declared "void *".
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Track LLVM 15 changes.