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
079a40ca
Unverified
Commit
079a40ca
authored
Nov 27, 2020
by
Edward Thomson
Committed by
GitHub
Nov 27, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5715 from lhchavez/fix-non-debug-build
Fix the `ENABLE_WERROR=ON` build in Groovy Gorilla (gcc 10.2)
parents
4fadd594
5db304f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/hash.c
+9
-3
No files found.
src/hash.c
View file @
079a40ca
...
...
@@ -41,8 +41,10 @@ int git_hash_init(git_hash_ctx *ctx)
case
GIT_HASH_ALGO_SHA1
:
return
git_hash_sha1_init
(
&
ctx
->
sha1
);
default:
GIT_ASSERT
(
0
)
;
/* unreachable */
;
}
GIT_ASSERT
(
0
);
return
-
1
;
}
int
git_hash_update
(
git_hash_ctx
*
ctx
,
const
void
*
data
,
size_t
len
)
...
...
@@ -51,8 +53,10 @@ int git_hash_update(git_hash_ctx *ctx, const void *data, size_t len)
case
GIT_HASH_ALGO_SHA1
:
return
git_hash_sha1_update
(
&
ctx
->
sha1
,
data
,
len
);
default:
GIT_ASSERT
(
0
)
;
/* unreachable */
;
}
GIT_ASSERT
(
0
);
return
-
1
;
}
int
git_hash_final
(
git_oid
*
out
,
git_hash_ctx
*
ctx
)
...
...
@@ -61,8 +65,10 @@ int git_hash_final(git_oid *out, git_hash_ctx *ctx)
case
GIT_HASH_ALGO_SHA1
:
return
git_hash_sha1_final
(
out
,
&
ctx
->
sha1
);
default:
GIT_ASSERT
(
0
)
;
/* unreachable */
;
}
GIT_ASSERT
(
0
);
return
-
1
;
}
int
git_hash_buf
(
git_oid
*
out
,
const
void
*
data
,
size_t
len
)
...
...
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