Commit da7c3c71c0cc3a2d5408a7e9885ae8a1b3b928ef

Vicent Marti 2011-02-27T22:07:39

Fix warnings in vector.c Signed-off-by: Vicent Marti <tanoku@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/vector.c b/src/vector.c
index e194977..f298804 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -28,12 +28,10 @@
 #include "vector.h"
 
 static const double resize_factor = 1.75;
-static const int minimum_size = 8;
+static const size_t minimum_size = 8;
 
 static int resize_vector(git_vector *v)
 {
-	void **new_contents;
-
 	v->_alloc_size = ((unsigned int)(v->_alloc_size * resize_factor)) + 1;
 	if (v->_alloc_size < minimum_size)
 		v->_alloc_size = minimum_size;