From eeece9e60984e76e5a41c1e2fa9efc5a1761e560 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 25 Jun 2012 21:25:26 +0300 Subject: 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. --- src/include/bootstrap/bootstrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/bootstrap/bootstrap.h') diff --git a/src/include/bootstrap/bootstrap.h b/src/include/bootstrap/bootstrap.h index e966a73977c..b31bca94110 100644 --- a/src/include/bootstrap/bootstrap.h +++ b/src/include/bootstrap/bootstrap.h @@ -40,7 +40,7 @@ extern Form_pg_attribute attrtypes[MAXATTR]; extern int numattr; -extern void AuxiliaryProcessMain(int argc, char *argv[]); +extern void AuxiliaryProcessMain(int argc, char *argv[]) __attribute__((noreturn)); extern void err_out(void); -- cgit v1.2.3