Open zeule opened 1 month ago
I've removed -Werror
.
Thank you, but now I have another set of errors. Trying building the master branch I received:
In file included from src/check_dir_mtime.cc:36:
src/print.h:30:10: fatal error: git2.h: No such file or directory
30 | #include <git2.h>
|
I then installed libgit2-1.8.1 and with it the compiler says:
src/git.cc: In function ‘gitstatus::RemotePtr gitstatus::GetRemote(git_repository*, const git_reference*)’:
src/git.cc:192:7: error: ‘git_branch_remote’ was not declared in this scope; did you mean ‘git_branch_move’?
192 | if (git_branch_remote(&remote, &symref, repo, git_reference_name(local))) return nullptr;
| ^~~~~~~~~~~~~~~~~
| git_branch_move
src/git.cc: In function ‘gitstatus::PushRemotePtr gitstatus::GetPushRemote(git_repository*, const git_reference*)’:
src/git.cc:223:7: error: ‘git_branch_push_remote’ was not declared in this scope; did you mean ‘git_branch_upstream_remote’?
223 | if (git_branch_push_remote(&remote, &symref, repo, git_reference_name(local))) return nullptr;
| ^~~~~~~~~~~~~~~~~~~~~~
| git_branch_upstream_remote
Could you, please, suggest how to avoid these erros?
Ah, sorry. I see it wants libgit commit 82cefe2b42300224ad3c148f8b1a569757cc617a
Another question is why -Werror in the released tarballs?