summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Naylor2024-03-07 07:11:49 +0000
committerJohn Naylor2024-03-07 07:11:49 +0000
commitac234e6377dd8bccc83f256fce043bf4ecf9d1f7 (patch)
tree4b8178b59626ca6f9295867c188a067d5adbcba5
parentee1b30f128d8f63a5184d2bcf1c48a3efc3fcbf9 (diff)
Fix redefinition of typedefs
Per buildfarm members sifaka and longfin, clang with -Wtypedef-redefinition warns of duplicate typedefs unless building with C11. Follow-up to ee1b30f12. Masahiko Sawada Discussion: https://postgr.es/m/CANWCAZauSg%3DLUbBbXhpeQtBuPifmzQNTYS6O8NsoAPz1zL-Txg%40mail.gmail.com
-rw-r--r--src/include/lib/radixtree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/lib/radixtree.h b/src/include/lib/radixtree.h
index f8943b8039..93e6a7d809 100644
--- a/src/include/lib/radixtree.h
+++ b/src/include/lib/radixtree.h
@@ -676,7 +676,7 @@ typedef struct RT_RADIX_TREE_CONTROL
} RT_RADIX_TREE_CONTROL;
/* Entry point for allocating and accessing the tree */
-typedef struct RT_RADIX_TREE
+struct RT_RADIX_TREE
{
MemoryContext context;
@@ -691,7 +691,7 @@ typedef struct RT_RADIX_TREE
/* leaf_context is used only for single-value leaves */
MemoryContextData *leaf_context;
#endif
-} RT_RADIX_TREE;
+};
/*
* Iteration support.
@@ -714,7 +714,7 @@ typedef struct RT_NODE_ITER
} RT_NODE_ITER;
/* state for iterating over the whole radix tree */
-typedef struct RT_ITER
+struct RT_ITER
{
RT_RADIX_TREE *tree;
@@ -728,7 +728,7 @@ typedef struct RT_ITER
/* The key constructed during iteration */
uint64 key;
-} RT_ITER;
+};
/* verification (available only in assert-enabled builds) */