diff options
| author | schu <schu-github@schulog.org> | 2011-04-26 11:29:05 +0200 |
|---|---|---|
| committer | schu <schu-github@schulog.org> | 2011-04-26 11:29:05 +0200 |
| commit | 402a47a7fa3ab2b549c5183d1d5fc82d95f64663 (patch) | |
| tree | 5878576f4878e33f878a9942e46329a1fc029a36 /src/revwalk.c | |
| parent | 7c37aa3ac5eecd0e725d0207c0507c4f6836c0eb (diff) | |
| download | libgit2-402a47a7fa3ab2b549c5183d1d5fc82d95f64663.tar.gz | |
Fix -Wunused-but-set-variable warnings
As of gcc 4.6 -Wall includes -Wunused-but-set-variable. Use GIT_UNUSED
or remove actually unused variables to prevent those warnings.
Diffstat (limited to 'src/revwalk.c')
| -rw-r--r-- | src/revwalk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/revwalk.c b/src/revwalk.c index b62b09961..78798480f 100644 --- a/src/revwalk.c +++ b/src/revwalk.c @@ -483,7 +483,7 @@ int git_revwalk_new(git_revwalk **revwalk_out, git_repository *repo) void git_revwalk_free(git_revwalk *walk) { unsigned int i; - const void *_unused; + const void *GIT_UNUSED(_unused); commit_object *commit; if (walk == NULL) @@ -558,7 +558,7 @@ int git_revwalk_next(git_oid *oid, git_revwalk *walk) void git_revwalk_reset(git_revwalk *walk) { - const void *_unused; + const void *GIT_UNUSED(_unused); commit_object *commit; assert(walk); |
