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
aa234ac0
Unverified
Commit
aa234ac0
authored
5 years ago
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: hide helper qsort code to silence unused functions warning
parent
ef5a3851
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/util.c
+5
-0
No files found.
src/util.c
View file @
aa234ac0
...
...
@@ -719,6 +719,10 @@ static int GIT_STDLIB_CALL git__qsort_r_glue_cmp(
}
#endif
#if !defined(HAVE_QSORT_R_BSD) && \
!defined(HAVE_QSORT_R_GNU) && \
!defined(HAVE_QSORT_S)
static
void
swap
(
uint8_t
*
a
,
uint8_t
*
b
,
size_t
elsize
)
{
char
tmp
[
256
];
...
...
@@ -744,6 +748,7 @@ static void insertsort(
for
(
j
=
i
;
j
>
base
&&
cmp
(
j
,
j
-
elsize
,
payload
)
<
0
;
j
-=
elsize
)
swap
(
j
,
j
-
elsize
,
elsize
);
}
#endif
void
git__qsort_r
(
void
*
els
,
size_t
nel
,
size_t
elsize
,
git__sort_r_cmp
cmp
,
void
*
payload
)
...
...
This diff is collapsed.
Click to expand it.
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