From: Jim Meyering Date: Wed, 24 Sep 2014 16:03:06 +0000 (-0700) Subject: exclude: declare exclude_patopts static X-Git-Tag: v1.0~7293 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=734ed7c8a7b3076e4a1dedaaeb02cfbaa594711c;p=gnulib.git 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". --- diff --git a/ChangeLog b/ChangeLog index 9ac551db27..876174f482 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2014-09-24 Jim Meyering + + 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 dirname: support compilation with C++ diff --git a/lib/exclude.c b/lib/exclude.c index 14b59b70eb..b50c0e4a26 100644 --- a/lib/exclude.c +++ b/lib/exclude.c @@ -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;