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
6c2939d6
Unverified
Commit
6c2939d6
authored
May 09, 2018
by
Patrick Steinhardt
Committed by
GitHub
May 09, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4646 from pks-t/pks/gcc-8.1-warnings
Fix GCC 8.1 warnings
parents
81ea9957
1bf57b5a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
src/streams/openssl.c
+1
-0
tests/iterator/workdir.c
+1
-1
tests/refs/normalize.c
+1
-4
No files found.
src/streams/openssl.c
View file @
6c2939d6
...
@@ -252,6 +252,7 @@ int git_openssl_stream_global_init(void)
...
@@ -252,6 +252,7 @@ int git_openssl_stream_global_init(void)
#if defined(GIT_THREADS)
#if defined(GIT_THREADS)
static
void
threadid_cb
(
CRYPTO_THREADID
*
threadid
)
static
void
threadid_cb
(
CRYPTO_THREADID
*
threadid
)
{
{
GIT_UNUSED
(
threadid
);
CRYPTO_THREADID_set_numeric
(
threadid
,
git_thread_currentid
());
CRYPTO_THREADID_set_numeric
(
threadid
,
git_thread_currentid
());
}
}
#endif
#endif
...
...
tests/iterator/workdir.c
View file @
6c2939d6
...
@@ -460,7 +460,7 @@ void test_iterator_workdir__icase_starts_and_ends(void)
...
@@ -460,7 +460,7 @@ void test_iterator_workdir__icase_starts_and_ends(void)
static
void
build_workdir_tree
(
const
char
*
root
,
int
dirs
,
int
subs
)
static
void
build_workdir_tree
(
const
char
*
root
,
int
dirs
,
int
subs
)
{
{
int
i
,
j
;
int
i
,
j
;
char
buf
[
64
],
sub
[
64
];
char
buf
[
64
],
sub
[
80
];
for
(
i
=
0
;
i
<
dirs
;
++
i
)
{
for
(
i
=
0
;
i
<
dirs
;
++
i
)
{
if
(
i
%
2
==
0
)
{
if
(
i
%
2
==
0
)
{
...
...
tests/refs/normalize.c
View file @
6c2939d6
...
@@ -193,10 +193,7 @@ void test_refs_normalize__jgit_suite(void)
...
@@ -193,10 +193,7 @@ void test_refs_normalize__jgit_suite(void)
char
c
;
char
c
;
char
buffer
[
GIT_REFNAME_MAX
];
char
buffer
[
GIT_REFNAME_MAX
];
for
(
c
=
'\1'
;
c
<
' '
;
c
++
)
{
for
(
c
=
'\1'
;
c
<
' '
;
c
++
)
{
strncpy
(
buffer
,
"refs/heads/mast"
,
15
);
p_snprintf
(
buffer
,
sizeof
(
buffer
),
"refs/heads/mast%cer"
,
c
);
strncpy
(
buffer
+
15
,
(
const
char
*
)
&
c
,
1
);
strncpy
(
buffer
+
16
,
"er"
,
2
);
buffer
[
18
-
1
]
=
'\0'
;
ensure_refname_invalid
(
GIT_REF_FORMAT_ALLOW_ONELEVEL
,
buffer
);
ensure_refname_invalid
(
GIT_REF_FORMAT_ALLOW_ONELEVEL
,
buffer
);
}
}
}
}
...
...
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