mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +00:00
Merge pull request #242 from schu/fix-unused-2
fileops.c: fix unused warning v2
This commit is contained in:
commit
275c6a0b37
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user