]> Savannah Git Hosting - gnulib.git/commitdiff
exclude: declare exclude_patopts static
authorJim Meyering <meyering@fb.com>
Wed, 24 Sep 2014 16:03:06 +0000 (09:03 -0700)
committerJim Meyering <meyering@fb.com>
Fri, 26 Sep 2014 23:10:10 +0000 (16:10 -0700)
* lib/exclude.c (exclude_patopts): Declare static,
to avoid triggering a -Wmissing-prototypes warning.
The alternative (declaring it in the .h file) would
require publicizing the private "struct patopts".

ChangeLog
lib/exclude.c

index 9ac551db27e1a35f2fd032f77abf0e9e230f6ceb..876174f482392469d2ea174022bac28543a375e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-09-24  Jim Meyering  <meyering@fb.com>
+
+       exclude: declare exclude_patopts static
+       * lib/exclude.c (exclude_patopts): Declare static,
+       to avoid triggering a -Wmissing-prototypes warning.
+       The alternative (declaring it in the .h file) would
+       require publicizing the private "struct patopts".
+
 2014-09-21  Werner Lemberg  <wl@gnu.org>
 
        dirname: support compilation with C++
index 14b59b70eb9d398d63e166956352662c2937a408..b50c0e4a2617d54264b5d39baee572fb509e087f 100644 (file)
@@ -392,7 +392,7 @@ exclude_fnmatch (char const *pattern, char const *f, int options)
   return matched;
 }
 
-bool
+static bool
 exclude_patopts (struct patopts const *opts, char const *f)
 {
   int options = opts->options;