pathspec.c: Fix some sparse warnings
PATCH 1/1 pathspec.c: Fix some sparse warnings
Sparse issues a warning for all six external symbols defined in this file. In order to suppress the warnings, we include the 'pathspec.h' header file, which contains the relevant extern declarations for these symbols.
---
Hi Adam,
When you re-roll your 'as/check-ignore' branch could you please squash this patch into commit a1080211 ("pathspec.c: move reusable code from builtin/add.c", 20-09-2012).
Thanks!
ATB,
Ramsay Jones
pathspec.c | 1 + 1 file changed, 1 insertion(+)
pathspec.c +1 -0
@@ -1,5 +1,6 @@#include "cache.h" #include "dir.h" +#include "pathspec.h" void validate_path (const char *prefix,const char *path) {
Signature · 1 line
1.7.12
Quoted 6 lines · Ramsay Jones
Sparse issues a warning for all six external symbols defined in this file. In order to suppress the warnings, we include the '
pathspec.h' header file, which contains the relevant extern declarations for these symbols.
Quoted 8 lines
Signed-off-by Ramsay Jones <[email protected]>---
Hi Adam,
When you re-roll your 'as/check-ignore' branch could you please squash this patch into commit
a1080211("pathspec.c: move reusable code frombuiltin/add.c", 20-09-2012).
Will do, thanks a lot!