commit 6ef99181273f6d8b3a3e08ce43ac3497ff71a0c0 parent a9ce50120b68db3669aaadeac348db8926bc15c4 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sun, 19 Nov 2023 11:25:46 +0100 Added void in function declaration for tests Diffstat:
15 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/test/000_basic/basic_tests.c b/test/000_basic/basic_tests.c @@ -17,7 +17,7 @@ check2(cube_t cube1, char *name1, cube_t cube2, char *name2) equal(cube1, cube2) ? "" : " NOT"); } -int main() { +int main(void) { cube_t zero, solved; memset(&zero, 0, sizeof(cube_t)); diff --git a/test/001_cube_conversion/cube_conversion_tests.c b/test/001_cube_conversion/cube_conversion_tests.c @@ -4,7 +4,7 @@ cube_fast_t cubetofast(cube_t); cube_t fasttocube(cube_fast_t); bool equal(cube_t, cube_t); -int main() { +int main(void) { char cubestr[STRLENMAX]; cube_t cube, cube2; cube_fast_t fast; diff --git a/test/010_math_permsign/permsgn_tests.c b/test/010_math_permsign/permsgn_tests.c @@ -2,7 +2,7 @@ int permsign(uint8_t *, int); -int main() { +int main(void) { char str[STRLENMAX]; uint8_t a[100]; int n, i, p; diff --git a/test/020_io_H48_read_write/io_H48_tests.c b/test/020_io_H48_read_write/io_H48_tests.c @@ -1,6 +1,6 @@ #include "../test.h" -int main() { +int main(void) { char *c, str[STRLENMAX]; cube_t cube; diff --git a/test/021_io_SRC_write/io_SRC_tests.c b/test/021_io_SRC_write/io_SRC_tests.c @@ -1,6 +1,6 @@ #include "../test.h" -int main() { +int main(void) { char *c, str[STRLENMAX]; cube_t cube; diff --git a/test/023_io_LST_write/io_LST_tests.c b/test/023_io_LST_write/io_LST_tests.c @@ -7,7 +7,7 @@ bool issolvable(cube_t); cube_t readcube(char *, char *); void writecube(char *, cube_t, char *); -int main() { +int main(void) { char *c, str[STRLENMAX]; cube_t cube; diff --git a/test/030_move/move_tests.c b/test/030_move/move_tests.c @@ -2,7 +2,7 @@ cube_t applymoves(cube_t, char *); -int main() { +int main(void) { char movestr[STRLENMAX], cubestr[STRLENMAX]; cube_t cube; diff --git a/test/040_inverse_cube/inverse_tests.c b/test/040_inverse_cube/inverse_tests.c @@ -2,7 +2,7 @@ cube_t inverse(cube_t); -int main() { +int main(void) { char str[STRLENMAX]; cube_t cube, inv; diff --git a/test/050_compose/compose_tests.c b/test/050_compose/compose_tests.c @@ -2,7 +2,7 @@ cube_t compose(cube_t, cube_t); -int main() { +int main(void) { char str[STRLENMAX]; cube_t c1, c2, c3; diff --git a/test/060_transform/transform_tests.c b/test/060_transform/transform_tests.c @@ -2,7 +2,7 @@ cube_t applytrans(cube_t, char *); -int main() { +int main(void) { char cubestr[STRLENMAX], transtr[STRLENMAX]; cube_t cube; diff --git a/test/071_coord_eo/coord_eo_tests.c b/test/071_coord_eo/coord_eo_tests.c @@ -3,7 +3,7 @@ int64_t coord_fast_eo(cube_fast_t); cube_fast_t cubetofast(cube_t); -int main() { +int main(void) { char str[STRLENMAX]; cube_t cube; cube_fast_t fast; diff --git a/test/080_allowednext/allowednext_tests.c b/test/080_allowednext/allowednext_tests.c @@ -11,7 +11,7 @@ static char *moves[] = { "B", "B2", "B'", }; -int main() { +int main(void) { char movestr[STRLENMAX]; uint8_t m[100], next; int n, i, j; diff --git a/test/090_solve_simple/solve_simple_tests.c b/test/090_solve_simple/solve_simple_tests.c @@ -3,7 +3,7 @@ int64_t solve(cube_t, char *, char *, char *, int8_t, int8_t, int64_t, int8_t, void *, char *); -int main() { +int main(void) { char cubestr[STRLENMAX], solverstr[STRLENMAX], optionsstr[STRLENMAX]; char nisstypestr[STRLENMAX], minmovesstr[STRLENMAX]; char maxmovesstr[STRLENMAX], maxsolsstr[STRLENMAX]; diff --git a/utils/h48_to_lst.c b/utils/h48_to_lst.c @@ -6,7 +6,7 @@ #define STRLENMAX 1000 -int main() { +int main(void) { char str[STRLENMAX]; cube_t cube; diff --git a/utils/invert.c b/utils/invert.c @@ -6,7 +6,7 @@ #define STRLENMAX 1000 -int main() { +int main(void) { char str[STRLENMAX]; cube_t cube;