projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b95f2f
)
Fix cpluspluscheck warning
author
Peter Eisentraut
<peter_e@gmx.net>
Sun, 26 Mar 2017 22:31:05 +0000
(18:31 -0400)
committer
Peter Eisentraut
<peter_e@gmx.net>
Sun, 26 Mar 2017 22:31:05 +0000
(18:31 -0400)
Structure tag cannot be the same as a typedef that is a pointer to that
struct.
src/include/utils/pg_locale.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/utils/pg_locale.h
b/src/include/utils/pg_locale.h
index 85eb9d71fdc7aa61874960a66bc97d43f01f6e38..439dfbdcafedeb668831f551b6915c083cdcee9a 100644
(file)
--- 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_
struc
t
{
char provider;
union
@@
-84,7
+84,7
@@
struct pg_locale_t
} info;
};
-typedef struct pg_locale_t *pg_locale_t;
+typedef struct pg_locale_
struc
t *pg_locale_t;
extern pg_locale_t pg_newlocale_from_collation(Oid collid);