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
d3ed2106
Commit
d3ed2106
authored
Nov 01, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clar: Fix warnings in GCC/Linux
parent
0bfa7323
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
tests-clar/checkout/conflict.c
+3
-0
tests-clar/pack/indexer.c
+0
-2
tests-clar/threads/refdb.c
+4
-2
No files found.
tests-clar/checkout/conflict.c
View file @
d3ed2106
...
...
@@ -1071,6 +1071,9 @@ static void collect_progress(
{
git_vector
*
paths
=
payload
;
(
void
)
completed_steps
;
(
void
)
total_steps
;
if
(
path
==
NULL
)
return
;
...
...
tests-clar/pack/indexer.c
View file @
d3ed2106
...
...
@@ -100,7 +100,6 @@ void test_pack_indexer__fix_thin(void)
unsigned
char
buffer
[
128
];
int
fd
;
ssize_t
read
;
git_off_t
left
;
struct
stat
st
;
const
char
*
name
=
"pack-11f0f69b334728fdd8bc86b80499f22f29d85b15.pack"
;
...
...
@@ -108,7 +107,6 @@ void test_pack_indexer__fix_thin(void)
cl_assert
(
fd
!=
-
1
);
cl_git_pass
(
p_stat
(
name
,
&
st
));
left
=
st
.
st_size
;
cl_git_pass
(
git_indexer_stream_new
(
&
idx
,
"."
,
NULL
,
NULL
,
NULL
));
read
=
p_read
(
fd
,
buffer
,
sizeof
(
buffer
));
...
...
tests-clar/threads/refdb.c
View file @
d3ed2106
...
...
@@ -147,13 +147,16 @@ static void *delete_refs(void *arg)
void
test_threads_refdb__edit_while_iterate
(
void
)
{
int
r
,
t
;
git_thread
th
[
THREADS
];
int
id
[
THREADS
];
git_oid
head
;
git_reference
*
ref
;
char
name
[
128
];
git_refdb
*
refdb
;
#ifdef GIT_THREADS
git_thread
th
[
THREADS
];
#endif
g_repo
=
cl_git_sandbox_init
(
"testrepo2"
);
cl_git_pass
(
git_reference_name_to_id
(
&
head
,
g_repo
,
"HEAD"
));
...
...
@@ -187,7 +190,6 @@ void test_threads_refdb__edit_while_iterate(void)
#ifdef GIT_THREADS
cl_git_pass
(
git_thread_create
(
&
th
[
t
],
NULL
,
fn
,
&
id
[
t
]));
#else
th
[
t
]
=
t
;
fn
(
&
id
[
t
]);
#endif
}
...
...
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