Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2007-11-17 22:48:14 +0300
committerJohannes Sixt <johannes.sixt@telecom.at>2008-06-26 10:47:17 +0400
commit14086b0a13f5f5ac456cb9ae16a263f92908ae61 (patch)
tree152dd1dc7acdcfec7c4883707001859560774c1e /Documentation/git.txt
parentcd800eecc27ef57cb934f349f116cd7022ec71ed (diff)
compat/pread.c: Add a forward declaration to fix a warning
read_in_full()'s is used in compat/pread.c. read_in_full() is declared in cache.h. But we can't include cache.h because too many macros are defined there. Using read_in_full() without including cache.h is dangerous because we wouldn't recognize if its prototyp changed. gcc issues a warning about that. This commit adds a forward declaration to git-compat-util.h. git-compat-util.h is included by compat/pread.c _and_ cache.h. Hence, changes in cache.h would be detected. Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Diffstat (limited to 'Documentation/git.txt')
0 files changed, 0 insertions, 0 deletions