Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ac234e6

Browse files
committed
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 ee1b30f. Masahiko Sawada Discussion: https://postgr.es/m/CANWCAZauSg%3DLUbBbXhpeQtBuPifmzQNTYS6O8NsoAPz1zL-Txg%40mail.gmail.com
1 parent ee1b30f commit ac234e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/include/lib/radixtree.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ typedef struct RT_RADIX_TREE_CONTROL
676676
} RT_RADIX_TREE_CONTROL;
677677

678678
/* Entry point for allocating and accessing the tree */
679-
typedef struct RT_RADIX_TREE
679+
struct RT_RADIX_TREE
680680
{
681681
MemoryContext context;
682682

@@ -691,7 +691,7 @@ typedef struct RT_RADIX_TREE
691691
/* leaf_context is used only for single-value leaves */
692692
MemoryContextData *leaf_context;
693693
#endif
694-
} RT_RADIX_TREE;
694+
};
695695

696696
/*
697697
* Iteration support.
@@ -714,7 +714,7 @@ typedef struct RT_NODE_ITER
714714
} RT_NODE_ITER;
715715

716716
/* state for iterating over the whole radix tree */
717-
typedef struct RT_ITER
717+
struct RT_ITER
718718
{
719719
RT_RADIX_TREE *tree;
720720

@@ -728,7 +728,7 @@ typedef struct RT_ITER
728728

729729
/* The key constructed during iteration */
730730
uint64 key;
731-
} RT_ITER;
731+
};
732732

733733

734734
/* verification (available only in assert-enabled builds) */

0 commit comments

Comments
 (0)