mirror of
https://github.com/postgres/postgres.git
synced 2025-12-12 02:37:31 +03:00
Fix cpluspluscheck warning
Structure tag cannot be the same as a typedef that is a pointer to that struct.
This commit is contained in:
@@ -66,7 +66,7 @@ extern void cache_locale_time(void);
|
|||||||
* fake version of the standard type locale_t in the global namespace.
|
* fake version of the standard type locale_t in the global namespace.
|
||||||
* pg_locale_t is occasionally checked for truth, so make it a pointer.
|
* pg_locale_t is occasionally checked for truth, so make it a pointer.
|
||||||
*/
|
*/
|
||||||
struct pg_locale_t
|
struct pg_locale_struct
|
||||||
{
|
{
|
||||||
char provider;
|
char provider;
|
||||||
union
|
union
|
||||||
@@ -84,7 +84,7 @@ struct pg_locale_t
|
|||||||
} info;
|
} info;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct pg_locale_t *pg_locale_t;
|
typedef struct pg_locale_struct *pg_locale_t;
|
||||||
|
|
||||||
extern pg_locale_t pg_newlocale_from_collation(Oid collid);
|
extern pg_locale_t pg_newlocale_from_collation(Oid collid);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user