diff options
author | Vicent Martà <tanoku@gmail.com> | 2011-06-07 07:03:14 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2011-06-07 07:03:14 -0700 |
commit | 275c6a0b37d6dba0abde635a679df8dadc20e970 (patch) | |
tree | 13107637043fede71a641d1f31a70cb0be133df8 | |
parent | 340fc0d40ac03680d6f7964bc47f8c8d7fbbc57c (diff) | |
parent | 05b49b02eff12670b81a28ecf7182a7553c72b6d (diff) | |
download | libgit2-275c6a0b37d6dba0abde635a679df8dadc20e970.tar.gz |
Merge pull request #242 from schu/fix-unused-2
fileops.c: fix unused warning v2
-rw-r--r-- | src/fileops.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/fileops.c b/src/fileops.c index b1a6bb8b1..8292843d1 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -334,17 +334,22 @@ int gitfo_dirent( return GIT_SUCCESS; } +#if GIT_PLATFORM_PATH_SEP == '/' +void gitfo_posixify_path(char *GIT_UNUSED(path)) +{ + /* nothing to do*/ +} +#else void gitfo_posixify_path(char *path) { - #if GIT_PLATFORM_PATH_SEP != '/' - while (*path) { - if (*path == GIT_PLATFORM_PATH_SEP) - *path = '/'; + while (*path) { + if (*path == GIT_PLATFORM_PATH_SEP) + *path = '/'; - path++; - } - #endif + path++; + } } +#endif int gitfo_retrieve_path_root_offset(const char *path) { |