Commit 59116392 by Vicent Martí

Merge pull request #427 from schu/fix-unused-parameters

t18-status.c: fix unused warnings
parents 8e9bfa4c ddeaa7fb
......@@ -154,14 +154,14 @@ BEGIN_TEST(statuscb0, "test retrieving status for worktree of repository")
git_futils_rmdir_r(TEMP_REPO_FOLDER, 1);
END_TEST
static int status_cb1(const char *path, unsigned int status_flags, void *payload)
static int status_cb1(const char *GIT_UNUSED(path), unsigned int GIT_UNUSED(status_flags), void *payload)
{
int *count = (int *)payload;;
GIT_UNUSED_ARG(path);
GIT_UNUSED_ARG(status_flags);
*count++;
(void) *count++;
return GIT_SUCCESS;
}
......@@ -445,4 +445,4 @@ BEGIN_SUITE(status)
ADD_TEST(singlestatus2);
ADD_TEST(singlestatus3);
ADD_TEST(singlestatus4);
END_SUITE
\ No newline at end of file
END_SUITE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment