summaryrefslogtreecommitdiff
path: root/update-cache.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-08 09:59:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-08 09:59:28 -0700
commit19b2860cba5742ab31fd682b80fefefac19be141 (patch)
tree406548bda4dfb72566db6e515e38604a7641ec15 /update-cache.c
parentbf0c6e839c692142784caf07b523cd69442e57a5 (diff)
downloadgit-19b2860cba5742ab31fd682b80fefefac19be141.tar.gz
Use "-Wall -O2" for the compiler to get more warnings.
And fix up the warnings that it pointed out. Let's keep the tree clean from early on. Not that the code is very beautiful anyway ;)
Diffstat (limited to 'update-cache.c')
-rw-r--r--update-cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/update-cache.c b/update-cache.c
index 0bcd5d4081..413e09d48f 100644
--- a/update-cache.c
+++ b/update-cache.c
@@ -50,6 +50,7 @@ static int remove_file_from_cache(char *path)
if (pos < active_nr)
memmove(active_cache + pos, active_cache + pos + 1, (active_nr - pos - 1) * sizeof(struct cache_entry *));
}
+ return 0;
}
static int add_cache_entry(struct cache_entry *ce)
@@ -250,4 +251,5 @@ int main(int argc, char **argv)
return 0;
out:
unlink(".dircache/index.lock");
+ return 0;
}