diff options
| author | Julio Espinoza-Sokal <julioes@gmail.com> | 2009-06-15 21:26:02 -0400 |
|---|---|---|
| committer | Andreas Ericsson <ae@op5.se> | 2009-06-16 11:40:14 +0200 |
| commit | 73c4dd9253f8d43c436fc88e64096910f4f1b8ee (patch) | |
| tree | 9bdf5bf0bb8dfa08e11ea902931100c4605d1d09 /tests/t0020-dirent.c | |
| parent | c79dded300f279a6d8660b13f4fca3c684533449 (diff) | |
| download | libgit2-73c4dd9253f8d43c436fc88e64096910f4f1b8ee.tar.gz | |
Add noreturn declaration compatible with the MSVC compiler.
MSVC provides a compiler declaration to declare that a function
never returns. This declaration is required in front of the
function definition rather than at the end, but fortunately gcc
is compatible with this location as well.
Explicit returns are no longer required after calls to test_die.
Signed-off-by: Julio Espinoza-Sokal <julioes@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'tests/t0020-dirent.c')
| -rw-r--r-- | tests/t0020-dirent.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/t0020-dirent.c b/tests/t0020-dirent.c index e8abd2f25..966f3c578 100644 --- a/tests/t0020-dirent.c +++ b/tests/t0020-dirent.c @@ -105,7 +105,6 @@ static int one_entry(void *state, char *path) } } test_die("unexpected path \"%s\"", path); - return -1; } @@ -189,7 +188,6 @@ static walk_data empty = { static int dont_call_me(void *state, char *path) { test_die("dont_call_me: unexpected callback!"); - return -1; } BEGIN_TEST(empty) |
