On Mon, 12 Aug 2013, Paul Eggert wrote:

> Santiago Vila wrote:
> > I wish there were a more simple way to fix this.
> 
> Does this work around the problem?

Almost. This is what works for me:

--- a/gnulib-tests/test-xvasprintf.c
+++ b/gnulib-tests/test-xvasprintf.c
@@ -95,7 +95,7 @@
   {
     /* Silence gcc warning about zero-length format string.  */
     const char *empty = "";
-    result = xasprintf (empty);
+    result = xasprintf (empty, empty);
     ASSERT (result != NULL);
     ASSERT (strcmp (result, "") == 0);
     free (result);

I can now build diffutils 3.3 but there is still another problem which I'll 
report separately.

Thanks a lot.

Reply via email to