From 05b49b02eff12670b81a28ecf7182a7553c72b6d Mon Sep 17 00:00:00 2001 From: schu Date: Mon, 6 Jun 2011 12:17:58 +0200 Subject: [PATCH] fileops.c: fix unused warning Signed-off-by: schu --- src/fileops.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/fileops.c b/src/fileops.c index 56bf2927f..e8ea1bd0b 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) {