@@ -1034,7 +1034,7 @@ AC_DEFUN([_PHP_CHECK_SIZEOF], [
1034
1034
#endif
1035
1035
$3
1036
1036
1037
- int main()
1037
+ int main(void )
1038
1038
{
1039
1039
FILE *fp = fopen("conftestval", "w");
1040
1040
if (!fp) return(1);
@@ -1102,7 +1102,7 @@ AC_CACHE_CHECK(for type of reentrant time-related functions, ac_cv_time_r_type,[
1102
1102
AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
1103
1103
#include <time.h>
1104
1104
1105
- int main() {
1105
+ int main(void ) {
1106
1106
char buf[ 27] ;
1107
1107
struct tm t;
1108
1108
time_t old = 0;
@@ -1118,7 +1118,7 @@ return (1);
1118
1118
] ,[
1119
1119
AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
1120
1120
#include <time.h>
1121
- int main() {
1121
+ int main(void ) {
1122
1122
struct tm t, *s;
1123
1123
time_t old = 0;
1124
1124
char buf[ 27] , *p;
@@ -1159,7 +1159,7 @@ AC_DEFUN([PHP_DOES_PWRITE_WORK],[
1159
1159
#include <errno.h>
1160
1160
#include <stdlib.h>
1161
1161
$1
1162
- int main() {
1162
+ int main(void ) {
1163
1163
int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
1164
1164
1165
1165
if (fd < 0) return 1;
@@ -1193,7 +1193,7 @@ AC_DEFUN([PHP_DOES_PREAD_WORK],[
1193
1193
#include <errno.h>
1194
1194
#include <stdlib.h>
1195
1195
$1
1196
- int main() {
1196
+ int main(void ) {
1197
1197
char buf[ 3] ;
1198
1198
int fd = open("conftest_in", O_RDONLY);
1199
1199
if (fd < 0) return 1;
@@ -1261,27 +1261,27 @@ dnl PHP_MISSING_TIME_R_DECL
1261
1261
dnl
1262
1262
AC_DEFUN ( [ PHP_MISSING_TIME_R_DECL] ,[
1263
1263
AC_MSG_CHECKING ( [ for missing declarations of reentrant functions] )
1264
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)() = localtime_r] ] ) ] ,[
1264
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)(void ) = localtime_r] ] ) ] ,[
1265
1265
:
1266
1266
] ,[
1267
1267
AC_DEFINE ( MISSING_LOCALTIME_R_DECL ,1 ,[ Whether localtime_r is declared] )
1268
1268
] )
1269
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)() = gmtime_r] ] ) ] ,[
1269
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)(void ) = gmtime_r] ] ) ] ,[
1270
1270
:
1271
1271
] ,[
1272
1272
AC_DEFINE ( MISSING_GMTIME_R_DECL ,1 ,[ Whether gmtime_r is declared] )
1273
1273
] )
1274
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)() = asctime_r] ] ) ] ,[
1274
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)(void ) = asctime_r] ] ) ] ,[
1275
1275
:
1276
1276
] ,[
1277
1277
AC_DEFINE ( MISSING_ASCTIME_R_DECL ,1 ,[ Whether asctime_r is declared] )
1278
1278
] )
1279
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)() = ctime_r] ] ) ] ,[
1279
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)(void ) = ctime_r] ] ) ] ,[
1280
1280
:
1281
1281
] ,[
1282
1282
AC_DEFINE ( MISSING_CTIME_R_DECL ,1 ,[ Whether ctime_r is declared] )
1283
1283
] )
1284
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <string.h>] ] , [ [ char *(*func)() = strtok_r] ] ) ] ,[
1284
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <string.h>] ] , [ [ char *(*func)(void ) = strtok_r] ] ) ] ,[
1285
1285
:
1286
1286
] ,[
1287
1287
AC_DEFINE ( MISSING_STRTOK_R_DECL ,1 ,[ Whether strtok_r is declared] )
@@ -1315,7 +1315,7 @@ dnl See if we have broken header files like SunOS has.
1315
1315
dnl
1316
1316
AC_DEFUN ( [ PHP_MISSING_FCLOSE_DECL] ,[
1317
1317
AC_MSG_CHECKING ( [ for fclose declaration] )
1318
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <stdio.h>] ] , [ [ int (*func)() = fclose] ] ) ] ,[
1318
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <stdio.h>] ] , [ [ int (*func)(void ) = fclose] ] ) ] ,[
1319
1319
AC_DEFINE ( MISSING_FCLOSE_DECL ,0 ,[ ] )
1320
1320
AC_MSG_RESULT ( [ ok] )
1321
1321
] ,[
@@ -1405,7 +1405,7 @@ struct s
1405
1405
int i;
1406
1406
char c[ 1] ;
1407
1407
};
1408
- int main()
1408
+ int main(void )
1409
1409
{
1410
1410
struct s *s = malloc(sizeof(struct s) + 3);
1411
1411
s->i = 3;
@@ -1463,7 +1463,7 @@ int seeker(void *cookie, off64_t *position, int whence)
1463
1463
1464
1464
cookie_io_functions_t funcs = {reader, writer, seeker, closer};
1465
1465
1466
- int main() {
1466
+ int main(void ) {
1467
1467
struct cookiedata g = { 0 };
1468
1468
FILE *fp = fopencookie(&g, "r", funcs);
1469
1469
@@ -1590,7 +1590,7 @@ AC_DEFUN([PHP_CHECK_FUNC_LIB],[
1590
1590
if test "$found" = "yes"; then
1591
1591
ac_libs=$LIBS
1592
1592
LIBS="$LIBS -l$2 "
1593
- AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [ int main() { return (0); } ] ] ) ] ,[ found=yes] ,[ found=no] ,[
1593
+ AC_RUN_IFELSE ( [ AC_LANG_PROGRAM ( ) ] ,[ found=yes] ,[ found=no] ,[
1594
1594
dnl Cross compilation.
1595
1595
found=yes
1596
1596
] )
@@ -1643,8 +1643,8 @@ AC_DEFUN([PHP_TEST_BUILD], [
1643
1643
LIBS="$4 $LIBS"
1644
1644
AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
1645
1645
$5
1646
- char $1 ();
1647
- int main() {
1646
+ char $1 (void );
1647
+ int main(void ) {
1648
1648
$1 ();
1649
1649
return 0;
1650
1650
}
@@ -2296,7 +2296,7 @@ AC_DEFUN([PHP_TEST_WRITE_STDOUT],[
2296
2296
2297
2297
#define TEXT "This is the test message -- "
2298
2298
2299
- int main()
2299
+ int main(void )
2300
2300
{
2301
2301
int n;
2302
2302
0 commit comments