Skip to content

Commit 4556f39

Browse files
committed
gcc 14.3 requires explicit type for function main(), implicit 'int' is not accepted any more
1 parent bb8fb52 commit 4556f39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ AC_CHECK_FUNCS(sem_init)
976976
if test "$ac_cv_func_sem_init" = "yes"; then
977977
AC_MSG_CHECKING(for working sem_init())
978978
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <semaphore.h>
979-
main () {
979+
int main () {
980980
sem_t s;
981981
return sem_init(&s,0,0);
982982
}
@@ -1009,7 +1009,7 @@ AC_SYS_LARGEFILE
10091009
if test "$ac_cv_sys_file_offset_bits" = "no"; then
10101010
AC_MSG_CHECKING(for native large file support)
10111011
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <unistd.h>
1012-
main () {
1012+
int main () {
10131013
return !(sizeof(off_t) == 8);
10141014
}]])],[ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
10151015
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)],[])
@@ -1047,7 +1047,7 @@ dnl EKU: try to determine the alignment of long and double
10471047
dnl replaces FB_ALIGNMENT and FB_DOUBLE_ALIGN in src/jrd/common.h
10481048
AC_MSG_CHECKING(alignment of long)
10491049
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <semaphore.h>
1050-
main () {
1050+
int main () {
10511051
struct s {
10521052
char a;
10531053
union { long long x; sem_t y; } b;
@@ -1058,7 +1058,7 @@ AC_MSG_RESULT($ac_cv_c_alignment)
10581058
AC_DEFINE_UNQUOTED(FB_ALIGNMENT, $ac_cv_c_alignment, [Alignment of long])
10591059

10601060
AC_MSG_CHECKING(alignment of double)
1061-
AC_RUN_IFELSE([AC_LANG_SOURCE([[main () {
1061+
AC_RUN_IFELSE([AC_LANG_SOURCE([[int main () {
10621062
struct s {
10631063
char a;
10641064
double b;

0 commit comments

Comments
 (0)