mirror of https://github.com/postgres/postgres
Use return instead of exit() in configure
Using exit() requires stdlib.h, which is not included. Use return instead. Also add return type for main(). Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
This commit is contained in:
parent
f1a469c9f1
commit
1c0cf52b39
|
@ -71,8 +71,10 @@ int does_int64_work()
|
|||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
main() {
|
||||
exit(! does_int64_work());
|
||||
return (! does_int64_work());
|
||||
}])],
|
||||
[Ac_cachevar=yes],
|
||||
[Ac_cachevar=no],
|
||||
|
|
|
@ -204,8 +204,10 @@ int does_int64_snprintf_work()
|
|||
return 0; /* either multiply or snprintf is busted */
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
main() {
|
||||
exit(! does_int64_snprintf_work());
|
||||
return (! does_int64_snprintf_work());
|
||||
}]])],
|
||||
[pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break],
|
||||
[],
|
||||
|
|
|
@ -13594,8 +13594,10 @@ int does_int64_work()
|
|||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
main() {
|
||||
exit(! does_int64_work());
|
||||
return (! does_int64_work());
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
|
@ -13676,8 +13678,10 @@ int does_int64_work()
|
|||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
main() {
|
||||
exit(! does_int64_work());
|
||||
return (! does_int64_work());
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
|
@ -13770,8 +13774,10 @@ int does_int64_snprintf_work()
|
|||
return 0; /* either multiply or snprintf is busted */
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
main() {
|
||||
exit(! does_int64_snprintf_work());
|
||||
return (! does_int64_snprintf_work());
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
|
|
Loading…
Reference in New Issue