Commit Diff


commit - 25783624d6d0848cf127e112e4b7648265a35ca4
commit + 23b19d00d9aa2815c3e8eaa76bf67cf5b54fe4e5
blob - 8ca7884bfbdf28f02f05c54fa74ff4c901619efc
blob + 349b0aa7642b2ac036100ff8f9e3ecfedcc5027d
--- lib/fileindex.c
+++ lib/fileindex.c
@@ -184,7 +184,7 @@ write_fileindex_entry(SHA1_CTX *ctx, struct got_filein
     FILE *outfile)
 {
 	const struct got_error *err;
-	size_t n, len, pad;
+	size_t n;
 
 	err = write_fileindex_val64(ctx, entry->ctime_sec, outfile);
 	if (err)
blob - 78b75a9cb1e13a14d285c5a07338fb4f92220d0f
blob + 1273d61371696cd7134c2bd6c2b3f3e6fa82946a
--- lib/worktree.c
+++ lib/worktree.c
@@ -235,7 +235,6 @@ got_worktree_open(struct got_worktree **worktree, cons
 {
 	const struct got_error *err = NULL;
 	char *path_got;
-	char *refstr = NULL;
 	char *formatstr = NULL;
 	char *path_lock = NULL;
 	int version, fd = -1;
@@ -432,7 +431,6 @@ add_dir_on_disk(struct got_worktree *worktree, const c
 {
 	const struct got_error *err = NULL;
 	char *abspath;
-	size_t len;
 
 	if (asprintf(&abspath, "%s/%s", worktree->root_path,
 	    apply_path_prefix(worktree, path)) == -1)
blob - 11419282913ae660313cf2d565598eb9c6a37c4c
blob + 84ee710753ca1f21948d16f4562723d4f880a12b
--- regress/worktree/worktree_test.c
+++ regress/worktree/worktree_test.c
@@ -104,7 +104,6 @@ static int
 read_meta_file(char **content, const char *path)
 {
 	FILE *f;
-	size_t n;
 	size_t len;
 	const char delim[3] = {'\0', '\0', '\0'};
 	int ret = 0;
@@ -249,9 +248,7 @@ worktree_init_exists(const char *repo_path)
 	struct got_repository *repo = NULL;
 	char worktree_path[PATH_MAX];
 	char *gotpath = NULL;
-	char *path;
 	int ok = 0;
-	FILE *f;
 
 	err = got_repo_open(&repo, repo_path);
 	if (err != NULL || repo == NULL)
@@ -383,7 +380,6 @@ main(int argc, char *argv[])
 	int test_ok = 0, failure = 0;
 	const char *repo_path;
 	int ch;
-	int vflag = 0;
 
 	while ((ch = getopt(argc, argv, "v")) != -1) {
 		switch (ch) {