Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita044378

Browse files
committed
Add some noreturn attributes to help static analyzers
1 parent07e524d commita044378

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
staticvoidparse_object(JsonLexContext*lex,JsonSemAction*sem);
8585
staticvoidparse_array_element(JsonLexContext*lex,JsonSemAction*sem);
8686
staticvoidparse_array(JsonLexContext*lex,JsonSemAction*sem);
87-
staticvoidreport_parse_error(JsonParseContextctx,JsonLexContext*lex);
88-
staticvoidreport_invalid_token(JsonLexContext*lex);
87+
staticvoidreport_parse_error(JsonParseContextctx,JsonLexContext*lex)pg_attribute_noreturn();
88+
staticvoidreport_invalid_token(JsonLexContext*lex)pg_attribute_noreturn();
8989
staticintreport_json_context(JsonLexContext*lex);
9090
staticchar*extract_mb_char(char*s);
9191
staticvoidcomposite_to_json(Datumcomposite,StringInforesult,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp