Skip to content

Commit b093bb5

Browse files
authored
Merge pull request libgit2#4759 from pks-t/pks/ci-werror
ci: enable compilation with "-Werror"
2 parents 9ada072 + 9008465 commit b093bb5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo "## Configuring build environment"
2929
echo "##############################################################################"
3030

3131
echo cmake ${SOURCE_DIR} -DBUILD_EXAMPLES=ON ${CMAKE_OPTIONS}
32-
cmake ${SOURCE_DIR} -DBUILD_EXAMPLES=ON -DBUILD_FUZZERS=ON -DUSE_STANDALONE_FUZZERS=ON ${CMAKE_OPTIONS}
32+
cmake ${SOURCE_DIR} -DENABLE_WERROR=ON -DBUILD_EXAMPLES=ON -DBUILD_FUZZERS=ON -DUSE_STANDALONE_FUZZERS=ON ${CMAKE_OPTIONS}
3333

3434
echo ""
3535
echo "##############################################################################"

src/odb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,8 +1384,8 @@ static int git_odb_stream__invalid_length(
13841384
{
13851385
giterr_set(GITERR_ODB,
13861386
"cannot %s - "
1387-
"Invalid length. %"PRIdZ" was expected. The "
1388-
"total size of the received chunks amounts to %"PRIdZ".",
1387+
"Invalid length. %"PRId64" was expected. The "
1388+
"total size of the received chunks amounts to %"PRId64".",
13891389
action, stream->declared_size, stream->received_bytes);
13901390

13911391
return -1;

0 commit comments

Comments
 (0)