mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Unify calling conventions for postgres/postmaster sub-main functions
There was a wild mix of calling conventions: Some were declared to return void and didn't return, some returned an int exit code, some claimed to return an exit code, which the callers checked, but actually never returned, and so on. Now all of these functions are declared to return void and decorated with attribute noreturn and don't return. That's easiest, and most code already worked that way.
This commit is contained in:
@ -749,7 +749,7 @@ extern void pgstat_reset_all(void);
|
||||
extern void allow_immediate_pgstat_restart(void);
|
||||
|
||||
#ifdef EXEC_BACKEND
|
||||
extern void PgstatCollectorMain(int argc, char *argv[]);
|
||||
extern void PgstatCollectorMain(int argc, char *argv[]) __attribute__((noreturn));
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user