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
27061b15
Commit
27061b15
authored
Sep 05, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some newer GCC compiler warnings
parent
9ce4f7da
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
tests-clar/checkout/index.c
+1
-1
tests-clar/diff/rename.c
+0
-3
tests-clar/odb/backend/nonrefreshing.c
+2
-2
No files found.
tests-clar/checkout/index.c
View file @
27061b15
...
...
@@ -245,7 +245,7 @@ void test_checkout_index__options_dir_modes(void)
(
void
)
p_umask
(
um
=
p_umask
(
022
));
cl_git_pass
(
p_stat
(
"./testrepo/a"
,
&
st
));
cl_assert_equal_i_fmt
(
st
.
st_mode
,
GIT_FILEMODE_TREE
|
0701
&
~
um
,
"%07o"
);
cl_assert_equal_i_fmt
(
st
.
st_mode
,
(
GIT_FILEMODE_TREE
|
0701
)
&
~
um
,
"%07o"
);
/* File-mode test, since we're on the 'dir' branch */
cl_git_pass
(
p_stat
(
"./testrepo/a/b.txt"
,
&
st
));
...
...
tests-clar/diff/rename.c
View file @
27061b15
...
...
@@ -1100,7 +1100,6 @@ void test_diff_rename__can_rename_from_rewrite(void)
{
git_index
*
index
;
git_tree
*
tree
;
git_checkout_opts
opts
=
GIT_CHECKOUT_OPTS_INIT
;
git_diff_list
*
diff
;
git_diff_options
diffopts
=
GIT_DIFF_OPTIONS_INIT
;
git_diff_find_options
findopts
=
GIT_DIFF_FIND_OPTIONS_INIT
;
...
...
@@ -1110,8 +1109,6 @@ void test_diff_rename__can_rename_from_rewrite(void)
const
char
*
targets
[]
=
{
"songof7cities.txt"
,
"this-is-a-rename.txt"
};
struct
rename_expected
expect
=
{
2
,
status
,
sources
,
targets
};
opts
.
checkout_strategy
=
GIT_CHECKOUT_FORCE
;
cl_git_pass
(
git_repository_index
(
&
index
,
g_repo
));
cl_git_pass
(
p_rename
(
"renames/songof7cities.txt"
,
"renames/this-is-a-rename.txt"
));
...
...
tests-clar/odb/backend/nonrefreshing.c
View file @
27061b15
...
...
@@ -132,8 +132,8 @@ static int build_fake_backend(
static
void
setup_repository_and_backend
(
git_error_code
error_code
)
{
git_odb
*
odb
;
git_odb_backend
*
backend
;
git_odb
*
odb
=
NULL
;
git_odb_backend
*
backend
=
NULL
;
_repo
=
cl_git_sandbox_init
(
"testrepo.git"
);
...
...
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