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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Ensure that length argument of memcmp() isn't seen as negative.
Date: 2022-02-15 22:28:23
Message-ID: E1nK6J5-0001rN-Kl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-02-15 22:41:23 Re: pgsql: Track LLVM 15 changes.
Previous Message Tom Lane 2022-02-15 22:17:36 pgsql: Ensure that the argument of shmdt(2) is declared "void *".