@@ -5861,7 +5861,7 @@ if test "x$enable_profiling" = xyes; then
5861
5861
CC=" $CC -pg"
5862
5862
cat confdefs.h - << _ACEOF >conftest.$ac_ext
5863
5863
/* end confdefs.h. */
5864
- int main() { return 0; }
5864
+ int main(void ) { return 0; }
5865
5865
_ACEOF
5866
5866
if ac_fn_c_try_link " $LINENO " ; then :
5867
5867
@@ -7593,7 +7593,7 @@ else
7593
7593
7594
7594
void* routine(void* p){return NULL;}
7595
7595
7596
- int main(){
7596
+ int main(void ){
7597
7597
pthread_t p;
7598
7598
if(pthread_create(&p,NULL,routine,NULL)!=0)
7599
7599
return 1;
@@ -7649,7 +7649,7 @@ else
7649
7649
7650
7650
void* routine(void* p){return NULL;}
7651
7651
7652
- int main(){
7652
+ int main(void ){
7653
7653
pthread_t p;
7654
7654
if(pthread_create(&p,NULL,routine,NULL)!=0)
7655
7655
return 1;
@@ -7699,7 +7699,7 @@ else
7699
7699
7700
7700
void* routine(void* p){return NULL;}
7701
7701
7702
- int main(){
7702
+ int main(void ){
7703
7703
pthread_t p;
7704
7704
if(pthread_create(&p,NULL,routine,NULL)!=0)
7705
7705
return 1;
@@ -7749,7 +7749,7 @@ else
7749
7749
7750
7750
void* routine(void* p){return NULL;}
7751
7751
7752
- int main(){
7752
+ int main(void ){
7753
7753
pthread_t p;
7754
7754
if(pthread_create(&p,NULL,routine,NULL)!=0)
7755
7755
return 1;
@@ -10060,7 +10060,7 @@ else
10060
10060
cat confdefs.h - << _ACEOF >conftest.$ac_ext
10061
10061
/* end confdefs.h. */
10062
10062
10063
- int main()
10063
+ int main(void )
10064
10064
{
10065
10065
char s[16];
10066
10066
int i, *p1, *p2;
@@ -10646,6 +10646,7 @@ $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10646
10646
/* end confdefs.h. */
10647
10647
10648
10648
#include <stdio.h>
10649
+ #include <stdlib.h>
10649
10650
#include <pthread.h>
10650
10651
10651
10652
void * start_routine (void *arg) { exit (0); }
@@ -10947,7 +10948,7 @@ else
10947
10948
void *foo(void *parm) {
10948
10949
return NULL;
10949
10950
}
10950
- int main() {
10951
+ int main(void ) {
10951
10952
pthread_attr_t attr;
10952
10953
pthread_t id;
10953
10954
if (pthread_attr_init(&attr)) return (-1);
@@ -12256,7 +12257,7 @@ else
12256
12257
12257
12258
#include <sys/stat.h>
12258
12259
#include <unistd.h>
12259
- int main(int argc, char*argv[])
12260
+ int main(int argc, char *argv[])
12260
12261
{
12261
12262
if(chflags(argv[0], 0) != 0)
12262
12263
return 1;
@@ -12305,7 +12306,7 @@ else
12305
12306
12306
12307
#include <sys/stat.h>
12307
12308
#include <unistd.h>
12308
- int main(int argc, char*argv[])
12309
+ int main(int argc, char *argv[])
12309
12310
{
12310
12311
if(lchflags(argv[0], 0) != 0)
12311
12312
return 1;
@@ -13266,7 +13267,7 @@ else
13266
13267
#include <sys/socket.h>
13267
13268
#include <netinet/in.h>
13268
13269
13269
- int main()
13270
+ int main(void )
13270
13271
{
13271
13272
int passive, gaierr, inet4 = 0, inet6 = 0;
13272
13273
struct addrinfo hints, *ai, *aitop;
@@ -14493,7 +14494,7 @@ else
14493
14494
14494
14495
#include <stdlib.h>
14495
14496
#include <math.h>
14496
- int main() {
14497
+ int main(void ) {
14497
14498
volatile double x, y, z;
14498
14499
/* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14499
14500
x = 0.99999999999999989; /* 1-2**-53 */
@@ -15291,7 +15292,7 @@ else
15291
15292
cat confdefs.h - << _ACEOF >conftest.$ac_ext
15292
15293
/* end confdefs.h. */
15293
15294
15294
- int main()
15295
+ int main(void )
15295
15296
{
15296
15297
return (((-1)>>3 == -1) ? 0 : 1);
15297
15298
}
@@ -15722,7 +15723,7 @@ else
15722
15723
15723
15724
#include <stdlib.h>
15724
15725
#include <unistd.h>
15725
- int main()
15726
+ int main(void )
15726
15727
{
15727
15728
int val1 = nice(1);
15728
15729
if (val1 != -1 && val1 == nice(2))
@@ -15765,7 +15766,7 @@ else
15765
15766
#include <poll.h>
15766
15767
#include <unistd.h>
15767
15768
15768
- int main()
15769
+ int main(void )
15769
15770
{
15770
15771
struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
15771
15772
int poll_test;
@@ -15823,7 +15824,7 @@ else
15823
15824
extern char *tzname[];
15824
15825
#endif
15825
15826
15826
- int main()
15827
+ int main(void )
15827
15828
{
15828
15829
/* Note that we need to ensure that not only does tzset(3)
15829
15830
do 'something' with localtime, but it works as documented
@@ -16584,9 +16585,10 @@ else
16584
16585
cat confdefs.h - << _ACEOF >conftest.$ac_ext
16585
16586
/* end confdefs.h. */
16586
16587
16588
+ #include <stddef.h>
16587
16589
#include <stdio.h>
16588
- #include<stdlib.h>
16589
- int main() {
16590
+ #include <stdlib.h>
16591
+ int main(void ) {
16590
16592
size_t len = -1;
16591
16593
const char *str = "text";
16592
16594
len = mbstowcs(NULL, str, 0);
@@ -16763,7 +16765,7 @@ else
16763
16765
#include <stdlib.h>
16764
16766
#include <string.h>
16765
16767
void foo(void *p, void *q) { memmove(p, q, 19); }
16766
- int main() {
16768
+ int main(void ) {
16767
16769
char a[32] = "123456789000000000";
16768
16770
foo(&a[9], a);
16769
16771
if (strcmp(a, "123456789123456789000000000") != 0)
@@ -16818,7 +16820,7 @@ else
16818
16820
);
16819
16821
return r;
16820
16822
}
16821
- int main() {
16823
+ int main(void ) {
16822
16824
int p = 8;
16823
16825
if ((foo(&p) ? : p) != 6)
16824
16826
return 1;
@@ -16857,7 +16859,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857
16859
#include <stdatomic.h>
16858
16860
atomic_int int_var;
16859
16861
atomic_uintptr_t uintptr_var;
16860
- int main() {
16862
+ int main(void ) {
16861
16863
atomic_store_explicit(&int_var, 5, memory_order_relaxed);
16862
16864
atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
16863
16865
int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
@@ -16890,9 +16892,10 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890
16892
/* end confdefs.h. */
16891
16893
16892
16894
16893
- volatile int val = 1;
16894
- int main() {
16895
- __atomic_load_n(&val, __ATOMIC_SEQ_CST);
16895
+ int val;
16896
+ int main(void) {
16897
+ __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
16898
+ (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
16896
16899
return 0;
16897
16900
}
16898
16901
@@ -16949,7 +16952,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949
16952
16950
16953
#include <dirent.h>
16951
16954
16952
- int main() {
16955
+ int main(void ) {
16953
16956
struct dirent entry;
16954
16957
return entry.d_type == DT_UNKNOWN;
16955
16958
}
@@ -16979,11 +16982,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979
16982
/* end confdefs.h. */
16980
16983
16981
16984
16985
+ #include <stddef.h>
16982
16986
#include <unistd.h>
16983
16987
#include <sys/syscall.h>
16984
16988
#include <linux/random.h>
16985
16989
16986
- int main() {
16990
+ int main(void ) {
16987
16991
char buffer[1];
16988
16992
const size_t buflen = sizeof(buffer);
16989
16993
const int flags = GRND_NONBLOCK;
@@ -17018,9 +17022,10 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018
17022
/* end confdefs.h. */
17019
17023
17020
17024
17025
+ #include <stddef.h>
17021
17026
#include <sys/random.h>
17022
17027
17023
- int main() {
17028
+ int main(void ) {
17024
17029
char buffer[1];
17025
17030
const size_t buflen = sizeof(buffer);
17026
17031
const int flags = 0;
0 commit comments