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
3b5001b4
Commit
3b5001b4
authored
Jun 12, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1647 from arrbee/fix-win32-warnings-part-112
Fix Windows warnings and missing prototypes
parents
88c401be
37f66e82
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
11 deletions
+16
-11
src/config.c
+2
-2
src/diff_driver.c
+2
-2
src/diff_driver.h
+1
-1
src/diff_tform.c
+3
-3
src/revparse.c
+4
-2
src/transports/winhttp.c
+2
-0
src/win32/posix_w32.c
+1
-0
tests-clar/refs/iterator.c
+1
-1
No files found.
src/config.c
View file @
3b5001b4
...
...
@@ -154,7 +154,7 @@ static int find_internal_file_by_level(
}
else
{
git_vector_foreach
(
&
cfg
->
files
,
i
,
internal
)
{
if
(
internal
->
level
==
level
)
pos
=
i
;
pos
=
(
int
)
i
;
}
}
...
...
@@ -189,7 +189,7 @@ static void try_remove_existing_file_internal(
git_vector_foreach
(
&
cfg
->
files
,
i
,
internal
)
{
if
(
internal
->
level
==
level
)
pos
=
i
;
pos
=
(
int
)
i
;
}
if
(
pos
==
-
1
)
...
...
src/diff_driver.c
View file @
3b5001b4
...
...
@@ -331,7 +331,7 @@ int git_diff_driver_content_is_binary(
}
static
int
diff_context_line__simple
(
git_diff_driver
*
driver
,
const
char
*
line
,
long
line_len
)
git_diff_driver
*
driver
,
const
char
*
line
,
size_t
line_len
)
{
GIT_UNUSED
(
driver
);
GIT_UNUSED
(
line_len
);
...
...
@@ -339,7 +339,7 @@ static int diff_context_line__simple(
}
static
int
diff_context_line__pattern_match
(
git_diff_driver
*
driver
,
const
char
*
line
,
long
line_len
)
git_diff_driver
*
driver
,
const
char
*
line
,
size_t
line_len
)
{
size_t
i
;
...
...
src/diff_driver.h
View file @
3b5001b4
...
...
@@ -31,7 +31,7 @@ typedef long (*git_diff_find_context_fn)(
const
char
*
,
long
,
char
*
,
long
,
void
*
);
typedef
int
(
*
git_diff_find_context_line
)(
git_diff_driver
*
,
const
char
*
,
long
);
git_diff_driver
*
,
const
char
*
,
size_t
);
typedef
struct
{
git_diff_driver
*
driver
;
...
...
src/diff_tform.c
View file @
3b5001b4
...
...
@@ -711,7 +711,7 @@ int git_diff_find_similar(
git_vector_foreach
(
&
diff
->
deltas
,
i
,
to
)
{
size_t
tried_sources
=
0
;
match_targets
[
i
].
idx
=
i
;
match_targets
[
i
].
idx
=
(
uint32_t
)
i
;
match_targets
[
i
].
similarity
=
0
;
/* skip things that are not rename targets */
...
...
@@ -744,8 +744,8 @@ int git_diff_find_similar(
match_sources
[
j
].
similarity
<
(
uint32_t
)
similarity
)
{
match_targets
[
i
].
similarity
=
(
uint32_t
)
similarity
;
match_sources
[
j
].
similarity
=
(
uint32_t
)
similarity
;
match_targets
[
i
].
idx
=
j
;
match_sources
[
j
].
idx
=
i
;
match_targets
[
i
].
idx
=
(
uint32_t
)
j
;
match_sources
[
j
].
idx
=
(
uint32_t
)
i
;
}
}
}
...
...
src/revparse.c
View file @
3b5001b4
...
...
@@ -674,7 +674,7 @@ static int ensure_left_hand_identifier_is_not_known_yet(git_object *object, git_
int
revparse__ext
(
git_object
**
object_out
,
git_reference
**
reference_out
,
in
t
*
identifier_len_out
,
size_
t
*
identifier_len_out
,
git_repository
*
repo
,
const
char
*
spec
)
{
...
...
@@ -832,7 +832,8 @@ int git_revparse_ext(
git_repository
*
repo
,
const
char
*
spec
)
{
int
error
,
identifier_len
;
int
error
;
size_t
identifier_len
;
git_object
*
obj
=
NULL
;
git_reference
*
ref
=
NULL
;
...
...
@@ -841,6 +842,7 @@ int git_revparse_ext(
*
object_out
=
obj
;
*
reference_out
=
ref
;
GIT_UNUSED
(
identifier_len
);
return
0
;
...
...
src/transports/winhttp.c
View file @
3b5001b4
...
...
@@ -19,6 +19,8 @@
#include <winhttp.h>
#pragma comment(lib, "winhttp")
#include <strsafe.h>
/* For UuidCreate */
#pragma comment(lib, "rpcrt4")
...
...
src/win32/posix_w32.c
View file @
3b5001b4
...
...
@@ -5,6 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "../posix.h"
#include "../fileops.h"
#include "path.h"
#include "utf-conv.h"
#include "repository.h"
...
...
tests-clar/refs/iterator.c
View file @
3b5001b4
...
...
@@ -66,7 +66,7 @@ void test_refs_iterator__list(void)
}
while
(
!
error
);
git_reference_iterator_free
(
iter
);
cl_assert_equal_
i
(
output
.
length
,
ARRAY_SIZE
(
refnames
));
cl_assert_equal_
sz
(
output
.
length
,
ARRAY_SIZE
(
refnames
));
git_vector_sort
(
&
output
);
...
...
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