Problem reported by Bruno Haible in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
* tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
* tests/test-quotearg.h: ... from here.
+2016-10-20 Paul Eggert <eggert@cs.ucla.edu>
+
+ quotearg-tests: pacify gcc -Wall
+ Problem reported by Bruno Haible in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
+ * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
+ * tests/test-quotearg.h: ... from here.
+
2016-10-20 Pádraig Brady <P@draigBrady.com>
canonicalize-lgpl: fix for missing SIZE_MAX on older systems
"\"'a' b'\"", "\"'" LQ_ENC RQ_ENC "'\"", "\"'" LQ RQ "'\"" } }
};
+static char *
+use_quote_double_quotes (const char *str, size_t *len)
+{
+ char *p = *len == SIZE_MAX ? quotearg_char (str, '"')
+ : quotearg_char_mem (str, *len, '"');
+ *len = strlen (p);
+ return p;
+}
+
int
main (int argc _GL_UNUSED, char *argv[])
{
return p;
}
-static char *
-use_quote_double_quotes (const char *str, size_t *len)
-{
- char *p = *len == SIZE_MAX ? quotearg_char (str, '"')
- : quotearg_char_mem (str, *len, '"');
- *len = strlen (p);
- return p;
-}
-
static char *
use_quotearg_colon (const char *str, size_t *len)
{