diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2024-04-04 11:27:51 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2024-04-04 11:36:26 -0400 |
commit | 1b00fe30a67774e55c5fc776096a3c96f1a147d2 (patch) | |
tree | 57de2f4658efff82150d768f1fdf1cf280f08401 /src | |
parent | 6f4d63e989ffbdb44f5856a17fae5ae68c40327d (diff) | |
download | postgresql-1b00fe30a67774e55c5fc776096a3c96f1a147d2.tar.gz postgresql-1b00fe30a67774e55c5fc776096a3c96f1a147d2.zip |
Fix warnings re typedef redefinition in ea7b4e9a2a and 3311ea86ed
Per gripe from Tom Lane and the buildfarm
Diffstat (limited to 'src')
-rw-r--r-- | src/common/jsonapi.c | 12 | ||||
-rw-r--r-- | src/common/parse_manifest.c | 5 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/common/jsonapi.c b/src/common/jsonapi.c index 3d1bd37ac26..0bc3e426b20 100644 --- a/src/common/jsonapi.c +++ b/src/common/jsonapi.c @@ -78,8 +78,10 @@ typedef enum * struct containing the 3 stacks used in non-recursive parsing, * and the token and value for scalars that need to be preserved * across calls. + * + * typedef appears in jsonapi.h */ -typedef struct JsonParserStack +struct JsonParserStack { int stack_size; char *prediction; @@ -89,18 +91,20 @@ typedef struct JsonParserStack bool *fnull; JsonTokenType scalar_tok; char *scalar_val; -} JsonParserStack; +}; /* * struct containing state used when there is a possible partial token at the * end of a json chunk when we are doing incremental parsing. + * + * typedef appears in jsonapi.h */ -typedef struct JsonIncrementalState +struct JsonIncrementalState { bool is_last_chunk; bool partial_completed; StringInfoData partial_token; -} JsonIncrementalState; +}; /* * constants and macros used in the nonrecursive parser diff --git a/src/common/parse_manifest.c b/src/common/parse_manifest.c index 040c5597df4..970a756ce8a 100644 --- a/src/common/parse_manifest.c +++ b/src/common/parse_manifest.c @@ -91,12 +91,13 @@ typedef struct char *manifest_checksum; } JsonManifestParseState; -typedef struct JsonManifestParseIncrementalState +/* typedef appears in parse_manifest.h */ +struct JsonManifestParseIncrementalState { JsonLexContext lex; JsonSemAction sem; pg_cryptohash_ctx *manifest_ctx; -} JsonManifestParseIncrementalState; +}; static JsonParseErrorType json_manifest_object_start(void *state); static JsonParseErrorType json_manifest_object_end(void *state); |