mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 05:43:36 +00:00
examples: clean up some warnings
This commit is contained in:
parent
e5f9df7b0f
commit
d202bb7d3b
@ -37,8 +37,8 @@ static void parse_opts(struct opts *o, int argc, char *argv[]);
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i, line, break_on_null_hunk;
|
int line, break_on_null_hunk;
|
||||||
size_t rawsize;
|
size_t i, rawsize;
|
||||||
char spec[1024] = {0};
|
char spec[1024] = {0};
|
||||||
struct opts o = {0};
|
struct opts o = {0};
|
||||||
const char *rawdata;
|
const char *rawdata;
|
||||||
|
@ -48,6 +48,8 @@ static void print_progress(const progress_data *pd)
|
|||||||
|
|
||||||
static int sideband_progress(const char *str, int len, void *payload)
|
static int sideband_progress(const char *str, int len, void *payload)
|
||||||
{
|
{
|
||||||
|
(void)payload; // unused
|
||||||
|
|
||||||
printf("remote: %*s", len, str);
|
printf("remote: %*s", len, str);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user