]> Savannah Git Hosting - gnulib.git/commitdiff
sh-quote: backport fix from diffutils
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Feb 2023 21:20:54 +0000 (13:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Feb 2023 21:20:54 +0000 (13:20 -0800)
* 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
lib/sh-quote.c

index 51a731f115b9b9e1719fd75848504580d89e8ed5..a28f4072881d135f7f237df9d60a81e6bfa28508 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2023-02-05  Paul Eggert  <eggert@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.
index 0e5a56ea905b404915be28f31c62a20117314556..a15d2cc541b2f6fa3bc1609dc0e50a7de2b7d6bf 100644 (file)
@@ -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);