Skip to content

Commit 94c382a

Browse files
authored
Change int main() to int main(void)
1 parent 83909e3 commit 94c382a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ config.set('CYSIGNALS_USE_SIGSETJMP', (setjmp_saves_mask or gnulibc) ? 1 : 0)
8282

8383
# Check for atomic operations
8484
# for _Atomic in C code
85-
config.set('CYSIGNALS_C_ATOMIC', cc.links('int main() { static _Atomic int x; return 0; }') ? 1 : 0)
85+
config.set('CYSIGNALS_C_ATOMIC', cc.links('int main(void) { static _Atomic int x; return 0; }') ? 1 : 0)
8686
# for _Atomic with OpenMP in C code
87-
config.set('CYSIGNALS_C_ATOMIC_WITH_OPENMP', cc.links('int main() { static _Atomic int x; return 0; }', args: ['-fopenmp']) ? 1 : 0)
87+
config.set('CYSIGNALS_C_ATOMIC_WITH_OPENMP', cc.links('int main(void) { static _Atomic int x; return 0; }', args: ['-fopenmp']) ? 1 : 0)
8888
# for _Atomic in C++ code
8989
config.set('CYSIGNALS_CXX_ATOMIC', cxx.links('int main() { static _Atomic int x; return 0; }') ? 1 : 0)
9090
# for _Atomic with OpenMP in C++ code

0 commit comments

Comments
 (0)