Skip to content

ci: enable compilation with "-Werror"#4759

Merged
ethomson merged 2 commits into
libgit2:masterfrom
pks-t:pks/ci-werror
Aug 6, 2018
Merged

ci: enable compilation with "-Werror"#4759
ethomson merged 2 commits into
libgit2:masterfrom
pks-t:pks/ci-werror

Conversation

@pks-t

@pks-t pks-t commented Aug 6, 2018

Copy link
Copy Markdown
Member

During the conversion of our CI scripts in bf418f0 (ci: refactor unix
ci build/test scripts, 2018-07-14), we accidentally dropped the
"-DENABLE_WERROR=ON" switch in our cmake invocation. Re-add it to help
us catch compiler warnings early.

pks-t added 2 commits August 6, 2018 12:04
The `git_odb_stream` members `declared_size` and `received_bytes` are
both of the type `git_off_t`, which we usually defined to be a 64 bit
signed integer. Thus, passing these members to "PRIdZ" formatters is not
correct, as they are not guaranteed to accept big enough numbers.
Instead, use the "PRId64" formatter, which is able to represent 64 bit
signed integers.
During the conversion of our CI scripts in bf418f0 (ci: refactor unix
ci build/test scripts, 2018-07-14), we accidentally dropped the
"-DENABLE_WERROR=ON" switch in our cmake invocation. Re-add it to help
us catch compiler warnings early.
@ethomson

ethomson commented Aug 6, 2018

Copy link
Copy Markdown
Member

I'm tired of waiting for AppVeyor. This looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants