From 583fc520dddf5125bc676777a537f0632f2acb55 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Mon, 23 Jan 2023 21:26:19 -0500 Subject: [PATCH] tests: Add missing returns from test programs. Failing to "return" from main is well-defined in C99, but older implementations will have undefined results. Easily solved. --- t/boardbit.c | 4 +++- t/initboard.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/t/boardbit.c b/t/boardbit.c index 6ecb6c6..678b728 100644 --- a/t/boardbit.c +++ b/t/boardbit.c @@ -1,6 +1,6 @@ /* * Test board mask calculation functions. - * Copyright © 2022 Nick Bowler + * Copyright © 2022-2023 Nick Bowler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -60,4 +60,6 @@ int main(void) show_patterns("above", board_above); putchar('\n'); show_patterns("below", board_below); + + return 0; } diff --git a/t/initboard.c b/t/initboard.c index cf59a30..cd34803 100644 --- a/t/initboard.c +++ b/t/initboard.c @@ -76,4 +76,6 @@ int main(void) } putchar('\n'); } + + return 0; } -- 2.43.2