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
98b93662
Commit
98b93662
authored
Feb 24, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2134 from libgit2/ben/icc
Fix Intel compiler warnings
parents
f3e44dd6
c8893d1f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
src/diff_tform.c
+2
-2
src/index.c
+3
-1
tests/blame/buffer.c
+2
-2
tests/index/addall.c
+1
-1
No files found.
src/diff_tform.c
View file @
98b93662
...
...
@@ -218,7 +218,7 @@ int git_diff_merge(git_diff *onto, const git_diff *from)
int
git_diff_find_similar__hashsig_for_file
(
void
**
out
,
const
git_diff_file
*
f
,
const
char
*
path
,
void
*
p
)
{
git_hashsig_option_t
opt
=
(
git_hashsig_option_t
)
p
;
git_hashsig_option_t
opt
=
(
git_hashsig_option_t
)
(
intptr_t
)
p
;
int
error
=
0
;
GIT_UNUSED
(
f
);
...
...
@@ -235,7 +235,7 @@ int git_diff_find_similar__hashsig_for_file(
int
git_diff_find_similar__hashsig_for_buf
(
void
**
out
,
const
git_diff_file
*
f
,
const
char
*
buf
,
size_t
len
,
void
*
p
)
{
git_hashsig_option_t
opt
=
(
git_hashsig_option_t
)
p
;
git_hashsig_option_t
opt
=
(
git_hashsig_option_t
)
(
intptr_t
)
p
;
int
error
=
0
;
GIT_UNUSED
(
f
);
...
...
src/index.c
View file @
98b93662
...
...
@@ -2046,13 +2046,15 @@ static int write_index(git_index *index, git_filebuf *file)
git_oid
hash_final
;
struct
index_header
header
;
bool
is_extended
;
uint32_t
index_version_number
;
assert
(
index
&&
file
);
is_extended
=
is_index_extended
(
index
);
index_version_number
=
is_extended
?
INDEX_VERSION_NUMBER_EXT
:
INDEX_VERSION_NUMBER
;
header
.
signature
=
htonl
(
INDEX_HEADER_SIG
);
header
.
version
=
htonl
(
i
s_extended
?
INDEX_VERSION_NUMBER_EXT
:
INDEX_VERSION_NUMBER
);
header
.
version
=
htonl
(
i
ndex_version_number
);
header
.
entry_count
=
htonl
((
uint32_t
)
index
->
entries
.
length
);
if
(
git_filebuf_write
(
file
,
&
header
,
sizeof
(
struct
index_header
))
<
0
)
...
...
tests/blame/buffer.c
View file @
98b93662
#include "blame_helpers.h"
git_repository
*
g_repo
;
git_blame
*
g_fileblame
,
*
g_bufferblame
;
static
git_repository
*
g_repo
;
static
git_blame
*
g_fileblame
,
*
g_bufferblame
;
void
test_blame_buffer__initialize
(
void
)
{
...
...
tests/index/addall.c
View file @
98b93662
...
...
@@ -3,7 +3,7 @@
#include "posix.h"
#include "fileops.h"
git_repository
*
g_repo
=
NULL
;
static
git_repository
*
g_repo
=
NULL
;
#define TEST_DIR "addall"
void
test_index_addall__initialize
(
void
)
...
...
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