aboutsummaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2007-03-03 18:28:46 +0000
committerJunio C Hamano <junkio@cox.net>2007-03-03 18:43:25 -0800
commitee96d11bebcbb4826f9b59b5dca64e2b8a204bc0 (patch)
treed0dadf4b0239e71d305d6a627c5ba214bcbc4f3b /refs.c
parent78cb59c8e5b5ac6ab709b8544698e13511759a76 (diff)
downloadgit-ee96d11bebcbb4826f9b59b5dca64e2b8a204bc0.tar.gz
git-ee96d11bebcbb4826f9b59b5dca64e2b8a204bc0.tar.xz
Fix a "label defined but unreferenced" warning.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/refs.c b/refs.c
index 638770378..a9b8c72c6 100644
--- a/refs.c
+++ b/refs.c
@@ -1042,7 +1042,9 @@ int create_symref(const char *ref_target, const char *refs_heads_master,
return -1;
}
+#ifndef NO_SYMLINK_HEAD
done:
+#endif
if (logmsg && !read_ref(refs_heads_master, new_sha1))
log_ref_write(ref_target, old_sha1, new_sha1, logmsg);