Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
1fc375e6
Commit
1fc375e6
authored
Oct 25, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows build
Pedantic ordering of GIT_UNUSED vs. variable declarations.
parent
1eb8cd7f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
src/remote.c
+1
-1
tests-clar/checkout/index.c
+1
-1
tests-clar/checkout/tree.c
+1
-1
tests-clar/clone/network.c
+2
-2
tests-clar/network/fetch.c
+1
-1
No files found.
src/remote.c
View file @
1fc375e6
...
...
@@ -745,7 +745,7 @@ void git_remote_set_callbacks(git_remote *remote, git_remote_callbacks *callback
}
}
inline
const
git_transfer_progress
*
git_remote_stats
(
git_remote
*
remote
)
GIT_INLINE
(
const
git_transfer_progress
*
)
git_remote_stats
(
git_remote
*
remote
)
{
assert
(
remote
);
return
&
remote
->
stats
;
...
...
tests-clar/checkout/index.c
View file @
1fc375e6
...
...
@@ -363,8 +363,8 @@ void test_checkout_index__wont_notify_of_expected_line_ending_changes(void)
static
void
progress
(
const
char
*
path
,
size_t
cur
,
size_t
tot
,
void
*
payload
)
{
GIT_UNUSED
(
path
);
GIT_UNUSED
(
cur
);
GIT_UNUSED
(
tot
);
bool
*
was_called
=
(
bool
*
)
payload
;
GIT_UNUSED
(
path
);
GIT_UNUSED
(
cur
);
GIT_UNUSED
(
tot
);
*
was_called
=
true
;
}
...
...
tests-clar/checkout/tree.c
View file @
1fc375e6
...
...
@@ -66,8 +66,8 @@ void test_checkout_tree__can_checkout_a_subdirectory_from_a_subtree(void)
static
void
progress
(
const
char
*
path
,
size_t
cur
,
size_t
tot
,
void
*
payload
)
{
GIT_UNUSED
(
path
);
GIT_UNUSED
(
cur
);
GIT_UNUSED
(
tot
);
bool
*
was_called
=
(
bool
*
)
payload
;
GIT_UNUSED
(
path
);
GIT_UNUSED
(
cur
);
GIT_UNUSED
(
tot
);
*
was_called
=
true
;
}
...
...
tests-clar/clone/network.c
View file @
1fc375e6
...
...
@@ -93,15 +93,15 @@ void test_clone_network__can_prevent_the_checkout_of_a_standard_repo(void)
static
void
checkout_progress
(
const
char
*
path
,
size_t
cur
,
size_t
tot
,
void
*
payload
)
{
GIT_UNUSED
(
path
);
GIT_UNUSED
(
cur
);
GIT_UNUSED
(
tot
);
bool
*
was_called
=
(
bool
*
)
payload
;
GIT_UNUSED
(
path
);
GIT_UNUSED
(
cur
);
GIT_UNUSED
(
tot
);
(
*
was_called
)
=
true
;
}
static
void
fetch_progress
(
const
git_transfer_progress
*
stats
,
void
*
payload
)
{
GIT_UNUSED
(
stats
);
bool
*
was_called
=
(
bool
*
)
payload
;
GIT_UNUSED
(
stats
);
(
*
was_called
)
=
true
;
}
...
...
tests-clar/network/fetch.c
View file @
1fc375e6
...
...
@@ -30,8 +30,8 @@ static int update_tips(const char *refname, const git_oid *a, const git_oid *b,
static
void
progress
(
const
git_transfer_progress
*
stats
,
void
*
payload
)
{
GIT_UNUSED
(
stats
);
bool
*
was_called
=
(
bool
*
)
payload
;
GIT_UNUSED
(
stats
);
*
was_called
=
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment