Skip to content

Commit 6f16f63

Browse files
committed
fixup
1 parent 00be9b9 commit 6f16f63

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/include/lib/xlist_template.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ typedef struct XLIST_head
269269
#endif
270270
} XLIST_head;
271271

272-
#endif /* XLIST_ */
272+
#endif /* XLIST_DECLARED */
273273

274274

275275

@@ -366,9 +366,9 @@ XLIST_move_ptrdiff(XLIST_link_t link, XLIST_node *old_base, XLIST_node *new_base
366366
}
367367

368368
static inline XLIST_node *
369-
XLIST_read_ptrdiff(XLIST_node *node, XLIST_link_t link)
369+
XLIST_read_ptrdiff(XLIST_node *base, XLIST_link_t link)
370370
{
371-
return (XLIST_node *) ((char *) node + (link * XLIST_PTRDIFF_SCALE));
371+
return (XLIST_node *) ((char *) base + (link * XLIST_PTRDIFF_SCALE));
372372
}
373373

374374
#endif

src/test/regress/regress_xlist.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ struct dlist_ptrdiff_cont
173173
static void
174174
test_dlist_ptrdiff_arithmetic(void)
175175
{
176+
#ifdef USE_ASSERT_CHECKING
176177
size_t scale = alignof(dlist_ptrdiff_node);
178+
#endif
177179
struct dlist_ptrdiff_cont array[8] = {0};
178180

179181
/* Pointing next to the node itself stores 0. */

src/tools/pginclude/headerscheck

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ do
129129
# These files are not meant to be included standalone, because
130130
# they contain lists that might have multiple use-cases.
131131
test "$f" = src/include/access/rmgrlist.h && continue
132+
test "$f" = src/include/lib/xlist_template.h && continue
132133
test "$f" = src/include/parser/kwlist.h && continue
133134
test "$f" = src/include/postmaster/proctypelist.h && continue
134135
test "$f" = src/include/regex/regerrs.h && continue

0 commit comments

Comments
 (0)