Commit 3fa1ec4a by schu

tests-clar/repo: fix unused warning

ifdef GIT_WIN32 helper unposix_path() to avoid unused-function warning
on non-Windows systems.

Signed-off-by: schu <schu-github@schulog.org>
parent 146f5c75
...@@ -205,6 +205,7 @@ void test_repo_open__bad_gitlinks(void) ...@@ -205,6 +205,7 @@ void test_repo_open__bad_gitlinks(void)
git_futils_rmdir_r("invalid2", 1); git_futils_rmdir_r("invalid2", 1);
} }
#ifdef GIT_WIN32
static void unposix_path(git_buf *path) static void unposix_path(git_buf *path)
{ {
char *src, *tgt; char *src, *tgt;
...@@ -226,6 +227,7 @@ static void unposix_path(git_buf *path) ...@@ -226,6 +227,7 @@ static void unposix_path(git_buf *path)
*tgt = '\0'; *tgt = '\0';
} }
#endif
void test_repo_open__win32_path(void) void test_repo_open__win32_path(void)
{ {
......
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