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
a3c00cd8
Commit
a3c00cd8
authored
Jul 10, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xdiff: cleanup some warnings
parent
9847d80d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
src/xdiff/xdiffi.c
+2
-0
src/xdiff/xemit.c
+1
-1
No files found.
src/xdiff/xdiffi.c
View file @
a3c00cd8
...
...
@@ -544,6 +544,8 @@ static int xdl_call_hunk_func(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
{
xdchange_t
*
xch
,
*
xche
;
(
void
)
xe
;
for
(
xch
=
xscr
;
xch
;
xch
=
xche
->
next
)
{
xche
=
xdl_get_hunk
(
&
xch
,
xecfg
);
if
(
!
xch
)
...
...
src/xdiff/xemit.c
View file @
a3c00cd8
...
...
@@ -90,7 +90,7 @@ xdchange_t *xdl_get_hunk(xdchange_t **xscr, xdemitconf_t const *xecfg)
}
else
if
(
distance
<
max_ignorable
&&
xch
->
ignore
)
{
ignored
+=
xch
->
chg2
;
}
else
if
(
lxch
!=
xchp
&&
xch
->
i1
+
ignored
-
(
lxch
->
i1
+
lxch
->
chg1
)
>
max_common
)
{
xch
->
i1
+
ignored
-
(
lxch
->
i1
+
lxch
->
chg1
)
>
(
unsigned
long
)
max_common
)
{
break
;
}
else
if
(
!
xch
->
ignore
)
{
lxch
=
xch
;
...
...
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