Commit 275c6a0b37d6dba0abde635a679df8dadc20e970

Vicent Martí 2011-06-07T07:03:14

Merge pull request #242 from schu/fix-unused-2 fileops.c: fix unused warning v2

diff --git a/src/fileops.c b/src/fileops.c
index b1a6bb8..8292843 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)
 {