Fix a couple of warnings
diff --git a/src/repository.c b/src/repository.c
index c1756b1..38382a9 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1264,7 +1264,7 @@
 	return 0;
 }
 
-int at_least_one_cb(const char *refname, void *payload)
+static int at_least_one_cb(const char *refname, void *payload)
 {
 	GIT_UNUSED(refname);
 	GIT_UNUSED(payload);
@@ -1287,7 +1287,7 @@
 int git_repository_is_empty(git_repository *repo)
 {
 	git_reference *head = NULL;
-	int error, ref_count = 0;
+	int error;
 
 	if (git_reference_lookup(&head, repo, GIT_HEAD_FILE) < 0)
 		return -1;
diff --git a/src/revparse.c b/src/revparse.c
index 6a7587d..6b49402 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -268,7 +268,7 @@
 		goto cleanup;
 
 	} else {
-		int i;
+		unsigned int i;
 		git_time commit_time;
 
 		for (i = 0; i < numentries; i++) {
diff --git a/tests-clar/config/read.c b/tests-clar/config/read.c
index d63ef4c..e0171a5 100644
--- a/tests-clar/config/read.c
+++ b/tests-clar/config/read.c
@@ -446,7 +446,6 @@
 void test_config_read__cannot_load_a_non_existing_config_file(void)
 {
 	git_config *cfg;
-	int i;
 
 	cl_assert_equal_i(GIT_ENOTFOUND, git_config_open_ondisk(&cfg, "./no.config"));
 }