Commit 04fd266584e2c82ca6069205ab7bbe4fa0b465c8

Krzysztof Adamski 2013-09-04T18:44:12

Move statement after declarations in add example.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/examples/add.c b/examples/add.c
index 5e59b2b..96595f8 100644
--- a/examples/add.c
+++ b/examples/add.c
@@ -31,11 +31,10 @@ void init_array(git_strarray *array, int argc, char **argv)
 
 int print_matched_cb(const char *path, const char *matched_pathspec, void *payload)
 {
-	(void)matched_pathspec;
-
 	struct print_payload p = *(struct print_payload*)(payload);
 	int ret;
 	git_status_t status;
+	(void)matched_pathspec;
 
 	if (git_status_file(&status, p.repo, path)) {
 		return -1; //abort