Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d202bb7

Browse files
committed
examples: clean up some warnings
1 parent e5f9df7 commit d202bb7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/blame.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ static void parse_opts(struct opts *o, int argc, char *argv[]);
3737

3838
int main(int argc, char *argv[])
3939
{
40-
int i, line, break_on_null_hunk;
41-
size_t rawsize;
40+
int line, break_on_null_hunk;
41+
size_t i, rawsize;
4242
char spec[1024] = {0};
4343
struct opts o = {0};
4444
const char *rawdata;

examples/network/clone.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ static void print_progress(const progress_data *pd)
4848

4949
static int sideband_progress(const char *str, int len, void *payload)
5050
{
51+
(void)payload; // unused
52+
5153
printf("remote: %*s", len, str);
5254
fflush(stdout);
5355
return 0;

0 commit comments

Comments
 (0)