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
2de0652b
Commit
2de0652b
authored
Apr 30, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Leverage GIT_UNUSED macro to explicitly mark a function parameter as purposely unused
parent
fa6420f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
tests-clar/diff/diff_helpers.c
+14
-8
No files found.
tests-clar/diff/diff_helpers.c
View file @
2de0652b
...
...
@@ -27,7 +27,9 @@ int diff_file_fn(
float
progress
)
{
diff_expects
*
e
=
cb_data
;
(
void
)
progress
;
GIT_UNUSED
(
progress
);
e
->
files
++
;
switch
(
delta
->
status
)
{
case
GIT_DELTA_ADDED
:
e
->
file_adds
++
;
break
;
...
...
@@ -48,9 +50,11 @@ int diff_hunk_fn(
size_t
header_len
)
{
diff_expects
*
e
=
cb_data
;
(
void
)
delta
;
(
void
)
header
;
(
void
)
header_len
;
GIT_UNUSED
(
delta
);
GIT_UNUSED
(
header
);
GIT_UNUSED
(
header_len
);
e
->
hunks
++
;
e
->
hunk_old_lines
+=
range
->
old_lines
;
e
->
hunk_new_lines
+=
range
->
new_lines
;
...
...
@@ -66,10 +70,12 @@ int diff_line_fn(
size_t
content_len
)
{
diff_expects
*
e
=
cb_data
;
(
void
)
delta
;
(
void
)
range
;
(
void
)
content
;
(
void
)
content_len
;
GIT_UNUSED
(
delta
);
GIT_UNUSED
(
range
);
GIT_UNUSED
(
content
);
GIT_UNUSED
(
content_len
);
e
->
lines
++
;
switch
(
line_origin
)
{
case
GIT_DIFF_LINE_CONTEXT
:
...
...
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