mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-14 12:59:59 +00:00
Fix a couple of warnings
This commit is contained in:
parent
81eecc342b
commit
6cfbbf7e32
@ -914,7 +914,7 @@ static int rename_one_remote_reference(
|
|||||||
const char *old_remote_name,
|
const char *old_remote_name,
|
||||||
const char *new_remote_name)
|
const char *new_remote_name)
|
||||||
{
|
{
|
||||||
int error;
|
int error = -1;
|
||||||
git_buf new_name = GIT_BUF_INIT;
|
git_buf new_name = GIT_BUF_INIT;
|
||||||
git_reference *reference = NULL;
|
git_reference *reference = NULL;
|
||||||
|
|
||||||
|
@ -39,10 +39,11 @@ static int callback_cb(
|
|||||||
const git_oid *stash_oid,
|
const git_oid *stash_oid,
|
||||||
void *payload)
|
void *payload)
|
||||||
{
|
{
|
||||||
int i = 0;
|
|
||||||
bool found = false;
|
|
||||||
struct callback_data *data = (struct callback_data *)payload;
|
struct callback_data *data = (struct callback_data *)payload;
|
||||||
|
|
||||||
|
GIT_UNUSED(index);
|
||||||
|
GIT_UNUSED(message);
|
||||||
|
|
||||||
cl_assert_equal_i(0, git_oid_streq(stash_oid, data->oids[data->invokes++]));
|
cl_assert_equal_i(0, git_oid_streq(stash_oid, data->oids[data->invokes++]));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "clar_libgit2.h"
|
#include "clar_libgit2.h"
|
||||||
#include "fileops.h"
|
#include "fileops.h"
|
||||||
|
#include "stash_helpers.h"
|
||||||
|
|
||||||
void commit_staged_files(
|
void commit_staged_files(
|
||||||
git_oid *commit_oid,
|
git_oid *commit_oid,
|
||||||
|
Loading…
Reference in New Issue
Block a user