From: Nick Bowler Date: Tue, 24 Jan 2023 02:26:19 +0000 (-0500) Subject: tests: Add missing returns from test programs. X-Git-Url: http://git.draconx.ca/gitweb/rrace.git/commitdiff_plain/583fc520dddf5125bc676777a537f0632f2acb55 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. --- 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; }