Skip to content

Commit 895f937

Browse files
committed
Fix cpluspluscheck warning
Structure tag cannot be the same as a typedef that is a pointer to that struct.
1 parent 9b95f2f commit 895f937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/utils/pg_locale.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extern void cache_locale_time(void);
6666
* fake version of the standard type locale_t in the global namespace.
6767
* pg_locale_t is occasionally checked for truth, so make it a pointer.
6868
*/
69-
struct pg_locale_t
69+
struct pg_locale_struct
7070
{
7171
char provider;
7272
union
@@ -84,7 +84,7 @@ struct pg_locale_t
8484
} info;
8585
};
8686

87-
typedef struct pg_locale_t *pg_locale_t;
87+
typedef struct pg_locale_struct *pg_locale_t;
8888

8989
extern pg_locale_t pg_newlocale_from_collation(Oid collid);
9090

0 commit comments

Comments
 (0)