Fix warning introduced in 5c279a6d350.
authorJeff Davis <[email protected]>
Thu, 7 Apr 2022 07:27:07 +0000 (00:27 -0700)
committerJeff Davis <[email protected]>
Thu, 7 Apr 2022 07:39:30 +0000 (00:39 -0700)
commit9553b4115f1879f66935f42fff0b798ef91866d0
tree12a7f2e31a7b9e2d003b5a50513bf2b82fdeec80
parente349c95d3e91754c8c3afc0587d52d44a479c8d2
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[email protected]
src/backend/access/transam/rmgr.c
src/backend/access/transam/xlogreader.c
src/bin/pg_waldump/pg_waldump.c
src/bin/pg_waldump/rmgrdesc.c
src/include/access/rmgr.h