diff options
author | schu <schu-github@schulog.org> | 2012-04-15 19:02:05 +0200 |
---|---|---|
committer | schu <schu-github@schulog.org> | 2012-04-15 20:30:12 +0200 |
commit | 3fa1ec4af63f30c8e205f18439f6eb5cc7e6898c (patch) | |
tree | 040728fef190fe187f5b93e01b65802d70b85907 | |
parent | 146f5c75d73229cc0d6a4fcebf5d81f90d54b1d3 (diff) | |
download | libgit2-3fa1ec4af63f30c8e205f18439f6eb5cc7e6898c.tar.gz |
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>
-rw-r--r-- | tests-clar/repo/open.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/repo/open.c b/tests-clar/repo/open.c index 28bae40fa..2450de017 100644 --- a/tests-clar/repo/open.c +++ b/tests-clar/repo/open.c @@ -205,6 +205,7 @@ void test_repo_open__bad_gitlinks(void) git_futils_rmdir_r("invalid2", 1); } +#ifdef GIT_WIN32 static void unposix_path(git_buf *path) { char *src, *tgt; @@ -226,6 +227,7 @@ static void unposix_path(git_buf *path) *tgt = '\0'; } +#endif void test_repo_open__win32_path(void) { |