summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2021-07-30 06:33:56 -0700
committerlhchavez <lhchavez@lhchavez.com>2021-08-08 19:08:59 -0700
commitc4cbab3201a1b5e75f6ef28e724956a36cb66dc0 (patch)
tree1d34e65b5beb76768075c765026356fa245ddb85
parent7488705d45161fa8c6945a67570ac8d9fc2d7bfc (diff)
downloadlibgit2-c4cbab3201a1b5e75f6ef28e724956a36cb66dc0.tar.gz
Handle one more unused variable introduced since the PR started
-rw-r--r--src/path.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 8928e49b8..ec573220e 100644
--- a/src/path.c
+++ b/src/path.c
@@ -1915,7 +1915,13 @@ GIT_INLINE(bool) should_validate_longpaths(git_repository *repo)
}
#else
-# define should_validate_longpaths(repo) (GIT_UNUSED(repo), false)
+
+GIT_INLINE(bool) should_validate_longpaths(git_repository *repo)
+{
+ GIT_UNUSED(repo);
+
+ return false;
+}
#endif
int git_path_validate_workdir(git_repository *repo, const char *path)