Fix most -Wundef warnings
Peter Eisentraut <peter@eisentraut.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/hstore/hstore_compat.c | modified | +1 −1 |
| contrib/pgcrypto/imath.c | modified | +2 −2 |
| contrib/pg_standby/pg_standby.c | modified | +1 −1 |
| src/backend/libpq/be-fsstubs.c | modified | +2 −2 |
| src/backend/replication/logical/reorderbuffer.c | modified | +1 −1 |
| src/backend/storage/file/fd.c | modified | +1 −1 |
| src/backend/utils/hash/dynahash.c | modified | +7 −7 |
| src/backend/utils/mmgr/freepage.c | modified | +1 −1 |
| src/include/port/pg_bswap.h | modified | +8 −0 |
| src/port/snprintf.c | modified | +2 −2 |
| src/port/win32error.c | modified | +1 −1 |
Discussion
- Fix most -Wundef warnings 8 messages · 2019-10-13 → 2019-10-21