Commit e399c7ee by Russell Belfer

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.
parent ad7417d7
...@@ -391,7 +391,7 @@ static int filter_list_check_attributes( ...@@ -391,7 +391,7 @@ static int filter_list_check_attributes(
/* if no values were found but no matches are needed, it's okay! */ /* if no values were found but no matches are needed, it's okay! */
if (error == GIT_ENOTFOUND && !fdef->nmatches) { if (error == GIT_ENOTFOUND && !fdef->nmatches) {
giterr_clear(); giterr_clear();
git__free(strs); git__free((void *)strs);
return 0; return 0;
} }
...@@ -411,7 +411,7 @@ static int filter_list_check_attributes( ...@@ -411,7 +411,7 @@ static int filter_list_check_attributes(
} }
if (error) if (error)
git__free(strs); git__free((void *)strs);
else else
*out = strs; *out = strs;
...@@ -474,7 +474,7 @@ int git_filter_list_load( ...@@ -474,7 +474,7 @@ int git_filter_list_load(
error = fdef->filter->check( error = fdef->filter->check(
fdef->filter, &payload, &src, values); fdef->filter, &payload, &src, values);
git__free(values); git__free((void *)values);
if (error == GIT_ENOTFOUND) if (error == GIT_ENOTFOUND)
error = 0; error = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment