diff options
| author | Russell Belfer <rb@github.com> | 2013-09-13 09:50:05 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-09-17 09:31:46 -0700 |
| commit | e399c7eee8dac02b7a79c6133ad4c761f05b7ba9 (patch) | |
| tree | e8c9e6a9202c3f4c9d5a54c38524677cd943c665 | |
| parent | ad7417d7a13e910d548e3e07225ce8914cdb218e (diff) | |
| download | libgit2-e399c7eee8dac02b7a79c6133ad4c761f05b7ba9.tar.gz | |
Fix win32 warnings
I wish MSVC understood that "const char **" is not a const ptr,
but it a non-const pointer to an array of const ptrs. Does that
seem like too much to ask.
| -rw-r--r-- | src/filter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filter.c b/src/filter.c index 0375b8b0e..62aefb420 100644 --- a/src/filter.c +++ b/src/filter.c @@ -391,7 +391,7 @@ static int filter_list_check_attributes( /* if no values were found but no matches are needed, it's okay! */ if (error == GIT_ENOTFOUND && !fdef->nmatches) { giterr_clear(); - git__free(strs); + git__free((void *)strs); return 0; } @@ -411,7 +411,7 @@ static int filter_list_check_attributes( } if (error) - git__free(strs); + git__free((void *)strs); else *out = strs; @@ -474,7 +474,7 @@ int git_filter_list_load( error = fdef->filter->check( fdef->filter, &payload, &src, values); - git__free(values); + git__free((void *)values); if (error == GIT_ENOTFOUND) error = 0; |
