summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-06-29 21:48:35 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2015-06-29 21:48:35 +0000
commitd202bb7d3bcca536c3b236b36621707a99854572 (patch)
treeab2cee71ea81fa3237efdac18c98763e4514fc23 /examples
parente5f9df7b0f754c90c35c8cad72e814adbb2657ac (diff)
downloadlibgit2-d202bb7d3bcca536c3b236b36621707a99854572.tar.gz
examples: clean up some warnings
Diffstat (limited to 'examples')
-rw-r--r--examples/blame.c4
-rw-r--r--examples/network/clone.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/blame.c b/examples/blame.c
index b126c0d33..9288352e2 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 b2d80ed01..caf41cca8 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;