mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 19:32:23 +00:00
MSVC doesn't like modern code neither
This commit is contained in:
parent
66d585c6b3
commit
fbc5661ebf
@ -47,11 +47,10 @@
|
||||
// as an example.
|
||||
static void check_error(int error_code, const char *action)
|
||||
{
|
||||
const git_error *error = giterr_last();
|
||||
if (!error_code)
|
||||
return;
|
||||
|
||||
const git_error *error = giterr_last();
|
||||
|
||||
printf("Error %d %s - %s\n", error_code, action,
|
||||
(error && error->message) ? error->message : "???");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user