Fix warning introduced in 5c279a6d350.
Jeff Davis <jdavis@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/rmgr.c | modified | +2 −2 |
| src/backend/access/transam/xlogreader.c | modified | +1 −1 |
| src/bin/pg_waldump/pg_waldump.c | modified | +3 −3 |
| src/bin/pg_waldump/rmgrdesc.c | modified | +2 −2 |
| src/include/access/rmgr.h | modified | +14 −4 |
Discussion
- Extensible Rmgr for Table AMs 30 messages · 2021-11-08 → 2022-04-07