diff options
author | Pierre-Olivier Latour <pol@mac.com> | 2015-06-02 08:36:15 -0700 |
---|---|---|
committer | Pierre-Olivier Latour <pol@mac.com> | 2015-06-02 11:49:38 -0700 |
commit | 9f3c18e2ac082454c955761f10f4a0d06390c27f (patch) | |
tree | 05ad8c3289df5f6ea3583127db3395aa9314b944 /tests/stash | |
parent | be5fda75879f7ed89c7a72adc257872d1ea13803 (diff) | |
download | libgit2-9f3c18e2ac082454c955761f10f4a0d06390c27f.tar.gz |
Fixed build warnings on Xcode 6.1
Diffstat (limited to 'tests/stash')
-rw-r--r-- | tests/stash/apply.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/stash/apply.c b/tests/stash/apply.c index e9b56f8c6..c242536be 100644 --- a/tests/stash/apply.c +++ b/tests/stash/apply.c @@ -254,6 +254,11 @@ int checkout_notify( { struct seen_paths *seen_paths = (struct seen_paths *)payload; + GIT_UNUSED(why); + GIT_UNUSED(baseline); + GIT_UNUSED(target); + GIT_UNUSED(workdir); + if (strcmp(path, "what") == 0) seen_paths->what = 1; else if (strcmp(path, "how") == 0) @@ -318,6 +323,8 @@ int aborting_progress_cb( git_stash_apply_progress_t progress, void *payload) { + GIT_UNUSED(payload); + if (progress == GIT_STASH_APPLY_PROGRESS_ANALYZE_MODIFIED) return -44; @@ -327,7 +334,6 @@ int aborting_progress_cb( void test_stash_apply__progress_cb_can_abort(void) { git_stash_apply_options opts = GIT_STASH_APPLY_OPTIONS_INIT; - git_stash_apply_progress_t progress = GIT_STASH_APPLY_PROGRESS_NONE; opts.progress_cb = aborting_progress_cb; |