summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-17 15:19:08 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-17 15:19:08 +0200
commitc5cf8cade3994463af3a7a09add41181769b8ba5 (patch)
treebea80cfa20cc68c56891b19af49efba6de48ec57
parent3a495c19bd280f5455047a9ac0e936f2c2f2f9a9 (diff)
downloadlibgit2-c5cf8cade3994463af3a7a09add41181769b8ba5.tar.gz
Replace void casts with GIT_UNUSED.
-rw-r--r--src/path.c4
-rw-r--r--tests/checkout/conflict.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/path.c b/src/path.c
index d29b992fe..114d7b7ec 100644
--- a/src/path.c
+++ b/src/path.c
@@ -965,7 +965,7 @@ int git_path_direach(
path_dirent_data de_data;
struct dirent *de, *de_buf = (struct dirent *)&de_data;
- (void)flags;
+ GIT_UNUSED(flags);
#ifdef GIT_USE_ICONV
git_path_iconv_t ic = GIT_PATH_ICONV_INIT;
@@ -1036,7 +1036,7 @@ int git_path_dirload(
path_dirent_data de_data;
struct dirent *de, *de_buf = (struct dirent *)&de_data;
- (void)flags;
+ GIT_UNUSED(flags);
#ifdef GIT_USE_ICONV
git_path_iconv_t ic = GIT_PATH_ICONV_INIT;
diff --git a/tests/checkout/conflict.c b/tests/checkout/conflict.c
index b8ae80576..721c3901e 100644
--- a/tests/checkout/conflict.c
+++ b/tests/checkout/conflict.c
@@ -1078,8 +1078,8 @@ static void collect_progress(
{
git_vector *paths = payload;
- (void)completed_steps;
- (void)total_steps;
+ GIT_UNUSED(completed_steps);
+ GIT_UNUSED(total_steps);
if (path == NULL)
return;