[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] [PATCH] maint: avoid new "make sytnax-check" failure.
From: |
Jim Meyering |
Subject: |
[bug-diffutils] [PATCH] maint: avoid new "make sytnax-check" failure. |
Date: |
Mon, 15 Aug 2011 07:30:43 +0200 |
"make syntax-check" was failing like this:
find_dir_file_pathname
the above functions should have static scope
make[1]: *** [_gl_tight_scope] Error 1
If fixed it with this:
>From 320355d6d4a7cbaf15a34341131e506fff8e41c2 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 15 Aug 2011 07:27:14 +0200
Subject: [PATCH] maint: avoid new "make sytnax-check" failure.
* src/diff.h (find_dir_file_pathname): Mark declaration with "extern"
keyword, in order to placate the tight-scope syntax check.
---
src/diff.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/diff.h b/src/diff.h
index b44a157..578c4ea 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -335,7 +335,7 @@ extern void print_context_script (struct change *, bool);
extern int diff_dirs (struct comparison const *,
int (*) (struct comparison const *,
char const *, char const *));
-char *find_dir_file_pathname (char const *, char const *);
+extern char *find_dir_file_pathname (char const *, char const *);
/* ed.c */
extern void print_ed_script (struct change *);
--
1.7.6.821.g3eb91be
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-diffutils] [PATCH] maint: avoid new "make sytnax-check" failure.,
Jim Meyering <=