From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix most -Wundef warnings
Date: Sat, 19 Oct 2019 16:38:53 +0000
Message-ID: <E1iLrkj-0002r9-27@gemulon.postgresql.org> (raw)
Fix most -Wundef warnings
In some cases #if was used instead of #ifdef in an inconsistent style.
Cleaning this up also helps when analyzing cases like
38d8dce61fff09daae0edb6bcdd42b0c7f10ebcd where this makes a
difference.
There are no behavior changes here, but the change in pg_bswap.h would
prevent possible accidental misuse by third-party code.
Discussion: https://www.postgresql.org/message-id/flat/3b615ca5-c595-3f1d-fdf7-a429e564f614%402ndquadrant.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5d3587d14b753cb25b0ebcd549d95e1b6ceebce4
Modified Files
--------------
contrib/hstore/hstore_compat.c | 2 +-
contrib/pg_standby/pg_standby.c | 2 +-
contrib/pgcrypto/imath.c | 4 ++--
src/backend/libpq/be-fsstubs.c | 4 ++--
src/backend/replication/logical/reorderbuffer.c | 2 +-
src/backend/storage/file/fd.c | 2 +-
src/backend/utils/hash/dynahash.c | 14 +++++++-------
src/backend/utils/mmgr/freepage.c | 2 +-
src/include/port/pg_bswap.h | 8 ++++++++
src/port/snprintf.c | 4 ++--
src/port/win32error.c | 2 +-
11 files changed, 27 insertions(+), 19 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: peter@eisentraut.org
Subject: Re: pgsql: Fix most -Wundef warnings
In-Reply-To: <E1iLrkj-0002r9-27@gemulon.postgresql.org>
References: <E1iLrkj-0002r9-27@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