aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-03-26 18:31:05 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-03-26 18:31:05 -0400
commit895f93701fd78b6faab6b437685357298a91dfe3 (patch)
treeda386c4c94c8f9f0e314238531667a58ccc69e33
parent9b95f2fa1e2684fa209a3594db2254b8841bf380 (diff)
downloadpostgresql-895f93701fd78b6faab6b437685357298a91dfe3.tar.gz
postgresql-895f93701fd78b6faab6b437685357298a91dfe3.zip
Fix cpluspluscheck warning
Structure tag cannot be the same as a typedef that is a pointer to that struct.
-rw-r--r--src/include/utils/pg_locale.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h
index 85eb9d71fdc..439dfbdcafe 100644
--- a/src/include/utils/pg_locale.h
+++ b/src/include/utils/pg_locale.h
@@ -66,7 +66,7 @@ extern void cache_locale_time(void);
* 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.
*/
-struct pg_locale_t
+struct pg_locale_struct
{
char provider;
union
@@ -84,7 +84,7 @@ struct pg_locale_t
} 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);