Commit fa89ff20 by Edward Thomson

remove some unused warnings

parent 500ec543
...@@ -251,7 +251,6 @@ static int preload_attr_file( ...@@ -251,7 +251,6 @@ static int preload_attr_file(
static int system_attr_file( static int system_attr_file(
git_buf *out, git_buf *out,
git_repository *repo,
git_attr_session *attr_session) git_attr_session *attr_session)
{ {
int error; int error;
...@@ -306,7 +305,7 @@ static int attr_setup(git_repository *repo, git_attr_session *attr_session) ...@@ -306,7 +305,7 @@ static int attr_setup(git_repository *repo, git_attr_session *attr_session)
* definitions will be available for later file parsing * definitions will be available for later file parsing
*/ */
error = system_attr_file(&sys, repo, attr_session); error = system_attr_file(&sys, attr_session);
if (error == 0) if (error == 0)
error = preload_attr_file( error = preload_attr_file(
...@@ -526,7 +525,7 @@ static int collect_attr_files( ...@@ -526,7 +525,7 @@ static int collect_attr_files(
} }
if ((flags & GIT_ATTR_CHECK_NO_SYSTEM) == 0) { if ((flags & GIT_ATTR_CHECK_NO_SYSTEM) == 0) {
error = system_attr_file(&dir, repo, attr_session); error = system_attr_file(&dir, attr_session);
if (!error) if (!error)
error = push_attr_file( error = push_attr_file(
......
...@@ -1137,6 +1137,10 @@ void update_attr_callback( ...@@ -1137,6 +1137,10 @@ void update_attr_callback(
size_t total_steps, size_t total_steps,
void *payload) void *payload)
{ {
GIT_UNUSED(completed_steps);
GIT_UNUSED(total_steps);
GIT_UNUSED(payload);
if (path && strcmp(path, "ident1.txt") == 0) if (path && strcmp(path, "ident1.txt") == 0)
cl_git_write2file("testrepo/.gitattributes", cl_git_write2file("testrepo/.gitattributes",
"*.txt ident\n", 12, O_RDWR|O_CREAT, 0666); "*.txt ident\n", 12, O_RDWR|O_CREAT, 0666);
......
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