diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2011-04-07 19:31:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-11 10:35:25 -0700 |
commit | 1e0f8c41ac157c54a33f2ee0afb7d96f5156ed0d (patch) | |
tree | 980fa8b4c2a8f0adf0401f7d172697450da83e9b /builtin | |
parent | sparse: Fix an "symbol 'format_subject' not declared" warning (diff) | |
download | tgif-1e0f8c41ac157c54a33f2ee0afb7d96f5156ed0d.tar.xz |
sparse: Fix an "symbol 'merge_file' not decared" warning
In order to fix the warning, we add a new "merge-file.h" header
containing the extern declaration of the merge_file() function,
and include the header in the source files that require the
declaration.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/merge-tree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/merge-tree.c b/builtin/merge-tree.c index 19917426fb..897a563bc6 100644 --- a/builtin/merge-tree.c +++ b/builtin/merge-tree.c @@ -3,6 +3,7 @@ #include "xdiff-interface.h" #include "blob.h" #include "exec_cmd.h" +#include "merge-file.h" static const char merge_tree_usage[] = "git merge-tree <base-tree> <branch1> <branch2>"; static int resolve_directories = 1; @@ -54,8 +55,6 @@ static const char *explanation(struct merge_list *entry) return "removed in remote"; } -extern void *merge_file(const char *, struct blob *, struct blob *, struct blob *, unsigned long *); - static void *result(struct merge_list *entry, unsigned long *size) { enum object_type type; |