Commit 66a4bfac99c07b79d75c015aed8f5972f0a4a336

Ramsay Jones 2009-01-12T19:38:37

Fix a sparse "symbol not declared" warning In particular, the git__delta_apply() function has not been declared prior to it's definition. In order to suppress the warning, include the delta-apply.h header which provides the public interface. This ensures that the declaration and definition are consistent. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

1
2
3
4
5
6
7
8
9
10
11
diff --git a/src/delta-apply.c b/src/delta-apply.c
index f924461..4852017 100644
--- a/src/delta-apply.c
+++ b/src/delta-apply.c
@@ -1,5 +1,6 @@
 #include "common.h"
 #include "git/odb.h"
+#include "delta-apply.h"
 
 /*
  * This file was heavily cribbed from BinaryDelta.java in JGit, which