Skip to content

Commit a044378

Browse files
committed
Add some noreturn attributes to help static analyzers
1 parent 07e524d commit a044378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/json.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ static void parse_object_field(JsonLexContext *lex, JsonSemAction *sem);
8484
static void parse_object(JsonLexContext *lex, JsonSemAction *sem);
8585
static void parse_array_element(JsonLexContext *lex, JsonSemAction *sem);
8686
static void parse_array(JsonLexContext *lex, JsonSemAction *sem);
87-
static void report_parse_error(JsonParseContext ctx, JsonLexContext *lex);
88-
static void report_invalid_token(JsonLexContext *lex);
87+
static void report_parse_error(JsonParseContext ctx, JsonLexContext *lex) pg_attribute_noreturn();
88+
static void report_invalid_token(JsonLexContext *lex) pg_attribute_noreturn();
8989
static int report_json_context(JsonLexContext *lex);
9090
static char *extract_mb_char(char *s);
9191
static void composite_to_json(Datum composite, StringInfo result,

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