examples: clean up some warnings
diff --git a/examples/blame.c b/examples/blame.c
index b126c0d..9288352 100644
--- a/examples/blame.c
+++ b/examples/blame.c
@@ -37,8 +37,8 @@ static void parse_opts(struct opts *o, int argc, char *argv[]);
int main(int argc, char *argv[])
{
- int i, line, break_on_null_hunk;
- size_t rawsize;
+ int line, break_on_null_hunk;
+ size_t i, rawsize;
char spec[1024] = {0};
struct opts o = {0};
const char *rawdata;
diff --git a/examples/network/clone.c b/examples/network/clone.c
index b2d80ed..caf41cc 100644
--- a/examples/network/clone.c
+++ b/examples/network/clone.c
@@ -48,6 +48,8 @@ static void print_progress(const progress_data *pd)
static int sideband_progress(const char *str, int len, void *payload)
{
+ (void)payload; // unused
+
printf("remote: %*s", len, str);
fflush(stdout);
return 0;