@@ -5929,7 +5929,7 @@ if test "x$enable_profiling" = xyes; then
5929
5929
CC="$CC -pg"
5930
5930
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931
5931
/* end confdefs.h. */
5932
- int main() { return 0; }
5932
+ int main(void ) { return 0; }
5933
5933
_ACEOF
5934
5934
if ac_fn_c_try_link "$LINENO"; then :
5935
5935
@@ -7752,7 +7752,7 @@ else
7752
7752
7753
7753
void* routine(void* p){return NULL;}
7754
7754
7755
- int main(){
7755
+ int main(void ){
7756
7756
pthread_t p;
7757
7757
if(pthread_create(&p,NULL,routine,NULL)!=0)
7758
7758
return 1;
@@ -7808,7 +7808,7 @@ else
7808
7808
7809
7809
void* routine(void* p){return NULL;}
7810
7810
7811
- int main(){
7811
+ int main(void ){
7812
7812
pthread_t p;
7813
7813
if(pthread_create(&p,NULL,routine,NULL)!=0)
7814
7814
return 1;
@@ -7858,7 +7858,7 @@ else
7858
7858
7859
7859
void* routine(void* p){return NULL;}
7860
7860
7861
- int main(){
7861
+ int main(void ){
7862
7862
pthread_t p;
7863
7863
if(pthread_create(&p,NULL,routine,NULL)!=0)
7864
7864
return 1;
@@ -7908,7 +7908,7 @@ else
7908
7908
7909
7909
void* routine(void* p){return NULL;}
7910
7910
7911
- int main(){
7911
+ int main(void ){
7912
7912
pthread_t p;
7913
7913
if(pthread_create(&p,NULL,routine,NULL)!=0)
7914
7914
return 1;
@@ -10447,7 +10447,7 @@ else
10447
10447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448
10448
/* end confdefs.h. */
10449
10449
10450
- int main()
10450
+ int main(void )
10451
10451
{
10452
10452
char s[16];
10453
10453
int i, *p1, *p2;
@@ -11024,6 +11024,7 @@ $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11024
11024
/* end confdefs.h. */
11025
11025
11026
11026
#include <stdio.h>
11027
+ #include <stdlib.h>
11027
11028
#include <pthread.h>
11028
11029
11029
11030
void * start_routine (void *arg) { exit (0); }
@@ -11325,7 +11326,7 @@ else
11325
11326
void *foo(void *parm) {
11326
11327
return NULL;
11327
11328
}
11328
- int main() {
11329
+ int main(void ) {
11329
11330
pthread_attr_t attr;
11330
11331
pthread_t id;
11331
11332
if (pthread_attr_init(&attr)) return (-1);
@@ -12687,7 +12688,7 @@ else
12687
12688
12688
12689
#include <sys/stat.h>
12689
12690
#include <unistd.h>
12690
- int main(int argc, char*argv[])
12691
+ int main(int argc, char *argv[])
12691
12692
{
12692
12693
if(chflags(argv[0], 0) != 0)
12693
12694
return 1;
@@ -12736,7 +12737,7 @@ else
12736
12737
12737
12738
#include <sys/stat.h>
12738
12739
#include <unistd.h>
12739
- int main(int argc, char*argv[])
12740
+ int main(int argc, char *argv[])
12740
12741
{
12741
12742
if(lchflags(argv[0], 0) != 0)
12742
12743
return 1;
@@ -13653,7 +13654,7 @@ else
13653
13654
#include <sys/socket.h>
13654
13655
#include <netinet/in.h>
13655
13656
13656
- int main()
13657
+ int main(void )
13657
13658
{
13658
13659
int passive, gaierr, inet4 = 0, inet6 = 0;
13659
13660
struct addrinfo hints, *ai, *aitop;
@@ -14880,7 +14881,7 @@ else
14880
14881
14881
14882
#include <stdlib.h>
14882
14883
#include <math.h>
14883
- int main() {
14884
+ int main(void ) {
14884
14885
volatile double x, y, z;
14885
14886
/* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14886
14887
x = 0.99999999999999989; /* 1-2**-53 */
@@ -15730,7 +15731,7 @@ else
15730
15731
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731
15732
/* end confdefs.h. */
15732
15733
15733
- int main()
15734
+ int main(void )
15734
15735
{
15735
15736
return (((-1)>>3 == -1) ? 0 : 1);
15736
15737
}
@@ -16178,7 +16179,7 @@ else
16178
16179
16179
16180
#include <stdlib.h>
16180
16181
#include <unistd.h>
16181
- int main()
16182
+ int main(void )
16182
16183
{
16183
16184
int val1 = nice(1);
16184
16185
if (val1 != -1 && val1 == nice(2))
@@ -16221,7 +16222,7 @@ else
16221
16222
#include <poll.h>
16222
16223
#include <unistd.h>
16223
16224
16224
- int main()
16225
+ int main(void )
16225
16226
{
16226
16227
struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
16227
16228
int poll_test;
@@ -16279,7 +16280,7 @@ else
16279
16280
extern char *tzname[];
16280
16281
#endif
16281
16282
16282
- int main()
16283
+ int main(void )
16283
16284
{
16284
16285
/* Note that we need to ensure that not only does tzset(3)
16285
16286
do 'something' with localtime, but it works as documented
@@ -17040,9 +17041,10 @@ else
17040
17041
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041
17042
/* end confdefs.h. */
17042
17043
17044
+ #include <stddef.h>
17043
17045
#include <stdio.h>
17044
- #include<stdlib.h>
17045
- int main() {
17046
+ #include <stdlib.h>
17047
+ int main(void ) {
17046
17048
size_t len = -1;
17047
17049
const char *str = "text";
17048
17050
len = mbstowcs(NULL, str, 0);
@@ -17219,7 +17221,7 @@ else
17219
17221
#include <stdlib.h>
17220
17222
#include <string.h>
17221
17223
void foo(void *p, void *q) { memmove(p, q, 19); }
17222
- int main() {
17224
+ int main(void ) {
17223
17225
char a[32] = "123456789000000000";
17224
17226
foo(&a[9], a);
17225
17227
if (strcmp(a, "123456789123456789000000000") != 0)
@@ -17274,7 +17276,7 @@ else
17274
17276
);
17275
17277
return r;
17276
17278
}
17277
- int main() {
17279
+ int main(void ) {
17278
17280
int p = 8;
17279
17281
if ((foo(&p) ? : p) != 6)
17280
17282
return 1;
@@ -17313,7 +17315,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313
17315
#include <stdatomic.h>
17314
17316
atomic_int int_var;
17315
17317
atomic_uintptr_t uintptr_var;
17316
- int main() {
17318
+ int main(void ) {
17317
17319
atomic_store_explicit(&int_var, 5, memory_order_relaxed);
17318
17320
atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
17319
17321
int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
@@ -17347,7 +17349,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347
17349
17348
17350
17349
17351
int val;
17350
- int main() {
17352
+ int main(void ) {
17351
17353
__atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
17352
17354
(void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
17353
17355
return 0;
@@ -17406,7 +17408,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406
17408
17407
17409
#include <dirent.h>
17408
17410
17409
- int main() {
17411
+ int main(void ) {
17410
17412
struct dirent entry;
17411
17413
return entry.d_type == DT_UNKNOWN;
17412
17414
}
@@ -17436,11 +17438,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436
17438
/* end confdefs.h. */
17437
17439
17438
17440
17441
+ #include <stddef.h>
17439
17442
#include <unistd.h>
17440
17443
#include <sys/syscall.h>
17441
17444
#include <linux/random.h>
17442
17445
17443
- int main() {
17446
+ int main(void ) {
17444
17447
char buffer[1];
17445
17448
const size_t buflen = sizeof(buffer);
17446
17449
const int flags = GRND_NONBLOCK;
@@ -17475,9 +17478,10 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475
17478
/* end confdefs.h. */
17476
17479
17477
17480
17481
+ #include <stddef.h>
17478
17482
#include <sys/random.h>
17479
17483
17480
- int main() {
17484
+ int main(void ) {
17481
17485
char buffer[1];
17482
17486
const size_t buflen = sizeof(buffer);
17483
17487
const int flags = 0;
0 commit comments