Fix some "implicit declaration of function" warnings
commite5ed3792f222beee3b27c8dd9fcccc6abfb8af58
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 12 Oct 2010 18:00:24 +0000 (12 19:00 +0100)
committerAndreas Ericsson <ae@op5.se>
Thu, 28 Oct 2010 17:24:01 +0000 (28 19:24 +0200)
tree090de59334235af949abe80d803970a5e95a65c0
parent94f979fd09a3856d1848c278612db2373591d57b
Fix some "implicit declaration of function" warnings

In particular, the compiler issues the following warnings:

    cc -g -O2 -Wall -Wextra -I../src -c t0602-write.c -o t0602-write.o
    t0602-write.c: In function `testfunc__index_load_test':
    t0602-write.c:45: warning: implicit declaration of function \
        `git_index__write'
    cc -g -O2 -Wall -Wextra -I../src -c t0603-sort.c -o t0603-sort.o
    t0603-sort.c: In function `testfunc__index_sort_test':
    t0603-sort.c:45: warning: implicit declaration of function \
        `git_index__sort'

In order to suppress the warnings, we add appropriate external
declarations of git_index__{write,sort} to the index.h header file.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
src/index.c
src/index.h