path: Fix a sparse warning
commit2f0aaaf9dabd846061a759b53ff4759ec886df62
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Wed, 29 May 2013 23:53:28 +0000 (30 00:53 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 May 2013 00:03:14 +0000 (29 17:03 -0700)
treebc342718f16a420041edd4ec2d6f6bd44d66912c
parentedca4152560522a431a51fc0a06147fc680b5b18
path: Fix a sparse warning

On MinGW, sparse issues an "'get_st_mode_bits' not declared. Should
it be static?" warning. The MinGW and MSVC builds do not see the
declaration of this function, within git-compat-util.h, due to its
placement within an preprocessor conditional.

In order to suppress the warning, we simply move the declaration to
the top level of the header.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h