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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy