pgsql: Fix incidental warnings from cpluspluscheck.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix incidental warnings from cpluspluscheck.
Date: 2019-08-18 23:01:52
Message-ID: E1hzUBM-0002Tc-3O@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix incidental warnings from cpluspluscheck.

Remove use of "register" keyword in hashfn.c. It's obsolescent
according to recent C++ compilers, and no modern C compiler pays
much attention to it either.

Also fix one cosmetic warning about signed vs unsigned comparison.

Discussion: https://postgr.es/m/20518.1559494394@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/232720be9b6412ec2b6bee405299bcbbbe700f0b

Modified Files
--------------
src/backend/utils/hash/hashfn.c | 16 ++++++++--------
src/include/utils/expandeddatum.h | 2 +-
src/include/utils/hashutils.h | 6 +++---
3 files changed, 12 insertions(+), 12 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-08-18 23:27:31 pgsql: Avoid conflicts with library versions of inet_net_ntop() and fri
Previous Message Tom Lane 2019-08-18 22:01:04 pgsql: Fix failure-to-compile-standalone in scripts_parallel.h.