summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-06-04 17:12:00 +0100
committerAndreas Ericsson <ae@op5.se>2009-06-05 12:12:42 +0200
commitc8d42b9bd1b6e45f48feadb5b02e152c5e5f1f62 (patch)
tree9eebf8791489850089738a95773d2f3c1d56d89e
parentaee8b26e6322bee55403a61634d7e01b77aea4c1 (diff)
downloadlibgit2-c8d42b9bd1b6e45f48feadb5b02e152c5e5f1f62.tar.gz
t0020-dirent.c: Add explicit returns to the callback functions
In particular, the one_entry() and dont_call_me() callback functions require explicit returns, in order to suppress some "control path" compiler warnings (from MS Visual C/C++). Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Andreas Ericsson <ae@op5.se>
-rw-r--r--tests/t0020-dirent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/t0020-dirent.c b/tests/t0020-dirent.c
index 966f3c578..e8abd2f25 100644
--- a/tests/t0020-dirent.c
+++ b/tests/t0020-dirent.c
@@ -105,6 +105,7 @@ static int one_entry(void *state, char *path)
}
}
test_die("unexpected path \"%s\"", path);
+ return -1;
}
@@ -188,6 +189,7 @@ 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)