@@ -5919,7 +5919,7 @@ if test "x$enable_profiling" = xyes; then
5919
5919
CC="$CC -pg"
5920
5920
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921
5921
/* end confdefs.h. */
5922
- int main() { return 0; }
5922
+ int main(void ) { return 0; }
5923
5923
_ACEOF
5924
5924
if ac_fn_c_try_link "$LINENO"; then :
5925
5925
@@ -7698,7 +7698,7 @@ else
7698
7698
7699
7699
void* routine(void* p){return NULL;}
7700
7700
7701
- int main(){
7701
+ int main(void ){
7702
7702
pthread_t p;
7703
7703
if(pthread_create(&p,NULL,routine,NULL)!=0)
7704
7704
return 1;
@@ -7754,7 +7754,7 @@ else
7754
7754
7755
7755
void* routine(void* p){return NULL;}
7756
7756
7757
- int main(){
7757
+ int main(void ){
7758
7758
pthread_t p;
7759
7759
if(pthread_create(&p,NULL,routine,NULL)!=0)
7760
7760
return 1;
@@ -7804,7 +7804,7 @@ else
7804
7804
7805
7805
void* routine(void* p){return NULL;}
7806
7806
7807
- int main(){
7807
+ int main(void ){
7808
7808
pthread_t p;
7809
7809
if(pthread_create(&p,NULL,routine,NULL)!=0)
7810
7810
return 1;
@@ -7854,7 +7854,7 @@ else
7854
7854
7855
7855
void* routine(void* p){return NULL;}
7856
7856
7857
- int main(){
7857
+ int main(void ){
7858
7858
pthread_t p;
7859
7859
if(pthread_create(&p,NULL,routine,NULL)!=0)
7860
7860
return 1;
@@ -10228,7 +10228,7 @@ else
10228
10228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229
10229
/* end confdefs.h. */
10230
10230
10231
- int main()
10231
+ int main(void )
10232
10232
{
10233
10233
char s[16];
10234
10234
int i, *p1, *p2;
@@ -10855,6 +10855,7 @@ $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10855
10855
/* end confdefs.h. */
10856
10856
10857
10857
#include <stdio.h>
10858
+ #include <stdlib.h>
10858
10859
#include <pthread.h>
10859
10860
10860
10861
void * start_routine (void *arg) { exit (0); }
@@ -11156,7 +11157,7 @@ else
11156
11157
void *foo(void *parm) {
11157
11158
return NULL;
11158
11159
}
11159
- int main() {
11160
+ int main(void ) {
11160
11161
pthread_attr_t attr;
11161
11162
pthread_t id;
11162
11163
if (pthread_attr_init(&attr)) return (-1);
@@ -12494,7 +12495,7 @@ else
12494
12495
12495
12496
#include <sys/stat.h>
12496
12497
#include <unistd.h>
12497
- int main(int argc, char*argv[])
12498
+ int main(int argc, char *argv[])
12498
12499
{
12499
12500
if(chflags(argv[0], 0) != 0)
12500
12501
return 1;
@@ -12543,7 +12544,7 @@ else
12543
12544
12544
12545
#include <sys/stat.h>
12545
12546
#include <unistd.h>
12546
- int main(int argc, char*argv[])
12547
+ int main(int argc, char *argv[])
12547
12548
{
12548
12549
if(lchflags(argv[0], 0) != 0)
12549
12550
return 1;
@@ -13473,7 +13474,7 @@ else
13473
13474
#include <sys/socket.h>
13474
13475
#include <netinet/in.h>
13475
13476
13476
- int main()
13477
+ int main(void )
13477
13478
{
13478
13479
int passive, gaierr, inet4 = 0, inet6 = 0;
13479
13480
struct addrinfo hints, *ai, *aitop;
@@ -14700,7 +14701,7 @@ else
14700
14701
14701
14702
#include <stdlib.h>
14702
14703
#include <math.h>
14703
- int main() {
14704
+ int main(void ) {
14704
14705
volatile double x, y, z;
14705
14706
/* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14706
14707
x = 0.99999999999999989; /* 1-2**-53 */
@@ -15550,7 +15551,7 @@ else
15550
15551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551
15552
/* end confdefs.h. */
15552
15553
15553
- int main()
15554
+ int main(void )
15554
15555
{
15555
15556
return (((-1)>>3 == -1) ? 0 : 1);
15556
15557
}
@@ -15981,7 +15982,7 @@ else
15981
15982
15982
15983
#include <stdlib.h>
15983
15984
#include <unistd.h>
15984
- int main()
15985
+ int main(void )
15985
15986
{
15986
15987
int val1 = nice(1);
15987
15988
if (val1 != -1 && val1 == nice(2))
@@ -16024,7 +16025,7 @@ else
16024
16025
#include <poll.h>
16025
16026
#include <unistd.h>
16026
16027
16027
- int main()
16028
+ int main(void )
16028
16029
{
16029
16030
struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
16030
16031
int poll_test;
@@ -16082,7 +16083,7 @@ else
16082
16083
extern char *tzname[];
16083
16084
#endif
16084
16085
16085
- int main()
16086
+ int main(void )
16086
16087
{
16087
16088
/* Note that we need to ensure that not only does tzset(3)
16088
16089
do 'something' with localtime, but it works as documented
@@ -16843,9 +16844,10 @@ else
16843
16844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844
16845
/* end confdefs.h. */
16845
16846
16847
+ #include <stddef.h>
16846
16848
#include <stdio.h>
16847
- #include<stdlib.h>
16848
- int main() {
16849
+ #include <stdlib.h>
16850
+ int main(void ) {
16849
16851
size_t len = -1;
16850
16852
const char *str = "text";
16851
16853
len = mbstowcs(NULL, str, 0);
@@ -17022,7 +17024,7 @@ else
17022
17024
#include <stdlib.h>
17023
17025
#include <string.h>
17024
17026
void foo(void *p, void *q) { memmove(p, q, 19); }
17025
- int main() {
17027
+ int main(void ) {
17026
17028
char a[32] = "123456789000000000";
17027
17029
foo(&a[9], a);
17028
17030
if (strcmp(a, "123456789123456789000000000") != 0)
@@ -17077,7 +17079,7 @@ else
17077
17079
);
17078
17080
return r;
17079
17081
}
17080
- int main() {
17082
+ int main(void ) {
17081
17083
int p = 8;
17082
17084
if ((foo(&p) ? : p) != 6)
17083
17085
return 1;
@@ -17116,7 +17118,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116
17118
#include <stdatomic.h>
17117
17119
atomic_int int_var;
17118
17120
atomic_uintptr_t uintptr_var;
17119
- int main() {
17121
+ int main(void ) {
17120
17122
atomic_store_explicit(&int_var, 5, memory_order_relaxed);
17121
17123
atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
17122
17124
int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
@@ -17149,9 +17151,10 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149
17151
/* end confdefs.h. */
17150
17152
17151
17153
17152
- volatile int val = 1;
17153
- int main() {
17154
- __atomic_load_n(&val, __ATOMIC_SEQ_CST);
17154
+ int val;
17155
+ int main(void) {
17156
+ __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
17157
+ (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
17155
17158
return 0;
17156
17159
}
17157
17160
@@ -17208,7 +17211,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208
17211
17209
17212
#include <dirent.h>
17210
17213
17211
- int main() {
17214
+ int main(void ) {
17212
17215
struct dirent entry;
17213
17216
return entry.d_type == DT_UNKNOWN;
17214
17217
}
@@ -17238,11 +17241,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238
17241
/* end confdefs.h. */
17239
17242
17240
17243
17244
+ #include <stddef.h>
17241
17245
#include <unistd.h>
17242
17246
#include <sys/syscall.h>
17243
17247
#include <linux/random.h>
17244
17248
17245
- int main() {
17249
+ int main(void ) {
17246
17250
char buffer[1];
17247
17251
const size_t buflen = sizeof(buffer);
17248
17252
const int flags = GRND_NONBLOCK;
@@ -17277,9 +17281,10 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277
17281
/* end confdefs.h. */
17278
17282
17279
17283
17284
+ #include <stddef.h>
17280
17285
#include <sys/random.h>
17281
17286
17282
- int main() {
17287
+ int main(void ) {
17283
17288
char buffer[1];
17284
17289
const size_t buflen = sizeof(buffer);
17285
17290
const int flags = 0;
0 commit comments