From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix warning introduced in 5c279a6d350.
Date: Thu, 07 Apr 2022 07:41:44 +0000
Message-ID: <E1ncMlz-000hfr-QC@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: jdavis@postgresql.org
Subject: Re: pgsql: Fix warning introduced in 5c279a6d350.
In-Reply-To: <E1ncMlz-000hfr-QC@gemulon.postgresql.org>
References: <E1ncMlz-000hfr-QC@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox