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

Commit0772c15

Browse files
committed
Mark some more functions as pg_attribute_noreturn().
Doing this suppresses Coverity warnings and might allow improvedcode in some cases. The prospects of that are not so bright asto warrant back-patching, though.Michael Paquier, per Coverity
1 parentcb03fa3 commit0772c15

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static char **filter_lines_with_token(char **lines, const char *token);
237237
staticchar**readfile(constchar*path);
238238
staticvoidwritefile(char*path,char**lines);
239239
staticFILE*popen_check(constchar*command,constchar*mode);
240-
staticvoidexit_nicely(void);
240+
staticvoidexit_nicely(void)pg_attribute_noreturn();
241241
staticchar*get_id(void);
242242
staticintget_encoding_id(constchar*encoding_name);
243243
staticvoidset_input(char**dest,constchar*filename);

‎src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static PQExpBuffer recoveryconfcontents = NULL;
132132

133133
/* Function headers */
134134
staticvoidusage(void);
135-
staticvoiddisconnect_and_exit(intcode);
135+
staticvoiddisconnect_and_exit(intcode)pg_attribute_noreturn();
136136
staticvoidverify_dir_is_empty_or_create(char*dirname,bool*created,bool*found);
137137
staticvoidprogress_report(inttablespacenum,constchar*filename,boolforce);
138138

‎src/bin/pg_basebackup/pg_recvlogical.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static XLogRecPtr output_fsync_lsn = InvalidXLogRecPtr;
6464

6565
staticvoidusage(void);
6666
staticvoidStreamLogicalLog(void);
67-
staticvoiddisconnect_and_exit(intcode);
67+
staticvoiddisconnect_and_exit(intcode)pg_attribute_noreturn();
6868
staticboolflushAndSendFeedback(PGconn*conn,TimestampTz*now);
6969
staticvoidprepareToTerminate(PGconn*conn,XLogRecPtrendpos,
7070
boolkeepalive,XLogRecPtrlsn);

‎src/test/isolation/isolationtester.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static intnconns = 0;
3232
/* In dry run only output permutations to be run by the tester. */
3333
staticintdry_run= false;
3434

35+
staticvoidexit_nicely(void)pg_attribute_noreturn();
3536
staticvoidrun_testspec(TestSpec*testspec);
3637
staticvoidrun_all_permutations(TestSpec*testspec);
3738
staticvoidrun_all_permutations_recurse(TestSpec*testspec,intnsteps,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp