Skip to content

Commit 952cc2a

Browse files
committed
Merge branch 'PHP-8.3'
2 parents 56cf09f + 8391530 commit 952cc2a

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

build/libtool.m4

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ dnl This sometimes fails to find confdefs.h, for some reason.
277277
dnl [#]line __oline__ "[$]0"
278278
[#]line __oline__ "configure"
279279
#include "confdefs.h"
280-
int main() {
280+
int main(void) {
281281
; return 0; }
282282
EOF
283283
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
@@ -978,8 +978,8 @@ else
978978
# endif
979979
#endif
980980
981-
void fnord() { int i=42;}
982-
int main ()
981+
void fnord(void) { int i=42;}
982+
int main (void)
983983
{
984984
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
985985
int status = $lt_dlunknown;
@@ -2750,7 +2750,7 @@ _LT_AC_TAGVAR(objext, $1)=$objext
27502750
lt_simple_compile_test_code="int some_variable = 0;"
27512751
27522752
# Code to be used in simple link tests
2753-
lt_simple_link_test_code='int main(){return(0);}'
2753+
lt_simple_link_test_code='int main(void){return(0);}'
27542754
27552755
_LT_AC_SYS_COMPILER
27562756
@@ -4640,7 +4640,7 @@ void nm_test_func(){}
46404640
#ifdef __cplusplus
46414641
}
46424642
#endif
4643-
int main(){nm_test_var='a';nm_test_func();return(0);}
4643+
int main(void){nm_test_var='a';nm_test_func();return(0);}
46444644
EOF
46454645
46464646
if AC_TRY_EVAL(ac_compile); then

build/ltmain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3598,7 +3598,7 @@ EOF
35983598
# whether they linked in statically or dynamically with ldd.
35993599
$rm conftest.c
36003600
cat > conftest.c <<EOF
3601-
int main() { return 0; }
3601+
int main(void) { return 0; }
36023602
EOF
36033603
$rm conftest
36043604
if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then

build/php.m4

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,27 +1210,27 @@ dnl PHP_MISSING_TIME_R_DECL
12101210
dnl
12111211
AC_DEFUN([PHP_MISSING_TIME_R_DECL],[
12121212
AC_MSG_CHECKING([for missing declarations of reentrant functions])
1213-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm *(*func)() = localtime_r]])],[
1213+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm *(*func)(void) = localtime_r]])],[
12141214
:
12151215
],[
12161216
AC_DEFINE(MISSING_LOCALTIME_R_DECL,1,[Whether localtime_r is declared])
12171217
])
1218-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm *(*func)() = gmtime_r]])],[
1218+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm *(*func)(void) = gmtime_r]])],[
12191219
:
12201220
],[
12211221
AC_DEFINE(MISSING_GMTIME_R_DECL,1,[Whether gmtime_r is declared])
12221222
])
1223-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[char *(*func)() = asctime_r]])],[
1223+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[char *(*func)(void) = asctime_r]])],[
12241224
:
12251225
],[
12261226
AC_DEFINE(MISSING_ASCTIME_R_DECL,1,[Whether asctime_r is declared])
12271227
])
1228-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[char *(*func)() = ctime_r]])],[
1228+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[char *(*func)(void) = ctime_r]])],[
12291229
:
12301230
],[
12311231
AC_DEFINE(MISSING_CTIME_R_DECL,1,[Whether ctime_r is declared])
12321232
])
1233-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]], [[char *(*func)() = strtok_r]])],[
1233+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]], [[char *(*func)(void) = strtok_r]])],[
12341234
:
12351235
],[
12361236
AC_DEFINE(MISSING_STRTOK_R_DECL,1,[Whether strtok_r is declared])
@@ -1518,7 +1518,7 @@ AC_DEFUN([PHP_TEST_BUILD], [
15181518
LIBS="$4 $LIBS"
15191519
AC_LINK_IFELSE([AC_LANG_SOURCE([[
15201520
$5
1521-
char $1();
1521+
char $1(void);
15221522
int main(void) {
15231523
$1();
15241524
return 0;

0 commit comments

Comments
 (0)