pgsql: Fix warning introduced in 5c279a6d350.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix warning introduced in 5c279a6d350.
Date: 2022-04-07 07:41:44
Message-ID: E1ncMlz-000hfr-QC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix warning introduced in 5c279a6d350.

Change two macros to be static inline functions instead to keep the
data type consistent. This avoids a "comparison is always true"
warning that was occurring with -Wtype-limits. In the process, change
the names to look less like macros.

Discussion: https://postgr.es/m/20220407063505.njnnrmbn4sxqfsts@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9553b4115f1879f66935f42fff0b798ef91866d0

Modified Files
--------------
src/backend/access/transam/rmgr.c | 4 ++--
src/backend/access/transam/xlogreader.c | 2 +-
src/bin/pg_waldump/pg_waldump.c | 6 +++---
src/bin/pg_waldump/rmgrdesc.c | 4 ++--
src/include/access/rmgr.h | 18 ++++++++++++++----
5 files changed, 22 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-04-07 07:42:50 Re: pgsql: pgstat: store statistics in shared memory.
Previous Message Andres Freund 2022-04-07 07:31:49 Re: pgsql: pgstat: store statistics in shared memory.