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
289e31cd
Commit
289e31cd
authored
Apr 14, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2264 from jacquesg/fix-warnings
Correct C90 warnings
parents
06d772d8
efaa342c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/global.c
+2
-1
tests/repo/open.c
+3
-2
No files found.
src/global.c
View file @
289e31cd
...
...
@@ -183,6 +183,7 @@ int git_threads_init(void)
void
git_threads_shutdown
(
void
)
{
void
*
ptr
=
NULL
;
pthread_once_t
new_once
=
PTHREAD_ONCE_INIT
;
if
(
git_atomic_dec
(
&
git__n_inits
)
>
0
)
return
;
...
...
@@ -190,7 +191,7 @@ void git_threads_shutdown(void)
/* Shut down any subsystems that have global state */
git__shutdown
();
void
*
ptr
=
pthread_getspecific
(
_tls_key
);
ptr
=
pthread_getspecific
(
_tls_key
);
pthread_setspecific
(
_tls_key
,
NULL
);
git__free
(
ptr
);
...
...
tests/repo/open.c
View file @
289e31cd
...
...
@@ -102,14 +102,13 @@ void test_repo_open__gitlinked(void)
void
test_repo_open__from_git_new_workdir
(
void
)
{
#ifndef GIT_WIN32
/* The git-new-workdir script that ships with git sets up a bunch of
* symlinks to create a second workdir that shares the object db with
* another checkout. Libgit2 can open a repo that has been configured
* this way.
*/
cl_git_sandbox_init
(
"empty_standard_repo"
);
#ifndef GIT_WIN32
git_repository
*
repo2
;
git_buf
link_tgt
=
GIT_BUF_INIT
,
link
=
GIT_BUF_INIT
,
body
=
GIT_BUF_INIT
;
const
char
**
scan
;
...
...
@@ -122,6 +121,8 @@ void test_repo_open__from_git_new_workdir(void)
"HEAD"
,
NULL
};
cl_git_sandbox_init
(
"empty_standard_repo"
);
cl_git_pass
(
p_mkdir
(
"alternate"
,
0777
));
cl_git_pass
(
p_mkdir
(
"alternate/.git"
,
0777
));
...
...
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