* lib/sh-quote.c (init_sh_quoting_options): Use C89 through C17 style for parameterless static function. This avoided a warning when compiling diffutils. This patch is backported from a circa-2009 diffutils patch and lets us remove diffutils/gl/lib/sh-quote.c.diff; see: https://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=8c3d25a63a2c5912170ef6e13f748f3904e6b5cf --- ChangeLog | 8 ++++++++ lib/sh-quote.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog index 51a731f115..a28f407288 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2023-02-05 Paul Eggert <egg...@cs.ucla.edu> + sh-quote: backport fix from diffutils + * lib/sh-quote.c (init_sh_quoting_options): + Use C89 through C17 style for parameterless static function. + This avoided a warning when compiling diffutils. + This patch is backported from a circa-2009 diffutils patch + and lets us remove diffutils/gl/lib/sh-quote.c.diff; see: + https://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=8c3d25a63a2c5912170ef6e13f748f3904e6b5cf + c-nullptr: new module * doc/gnulib.texi (nullptr): New section. * doc/posix-headers/stddef.texi: Document lack of nullptr_t. diff --git a/lib/sh-quote.c b/lib/sh-quote.c index 0e5a56ea90..a15d2cc541 100644 --- a/lib/sh-quote.c +++ b/lib/sh-quote.c @@ -30,7 +30,7 @@ static struct quoting_options *sh_quoting_options; /* Initializes the sh_quoting_options variable. */ static void -init_sh_quoting_options () +init_sh_quoting_options (void) { sh_quoting_options = clone_quoting_options (NULL); set_quoting_style (sh_quoting_options, shell_quoting_style); -- 2.37.2