diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-06-29 21:48:35 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-06-29 21:48:35 +0000 |
commit | d202bb7d3bcca536c3b236b36621707a99854572 (patch) | |
tree | ab2cee71ea81fa3237efdac18c98763e4514fc23 /examples | |
parent | e5f9df7b0f754c90c35c8cad72e814adbb2657ac (diff) | |
download | libgit2-d202bb7d3bcca536c3b236b36621707a99854572.tar.gz |
examples: clean up some warnings
Diffstat (limited to 'examples')
-rw-r--r-- | examples/blame.c | 4 | ||||
-rw-r--r-- | examples/network/clone.c | 2 |
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; |