From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix most -Wundef warnings |
Date: | 2019-10-19 16:38:53 |
Message-ID: | E1iLrkj-0002r9-27@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Korotkov | 2019-10-19 16:44:49 | Re: pgsql: Implement jsonpath .datetime() method |
Previous Message | Noah Misch | 2019-10-19 03:27:18 | pgsql: Use standard compare_exchange loop style in ProcArrayGroupClearX |