Clang deduced that if ENABLE_DEBUGGING is undefined, then err
was a dead assignment. But in the EAI_SYSTEM case, we fail
the test, so the output should be unconditional.
* tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2011-05-03 Eric Blake <eblake@redhat.com>
+
+ test-getaddrinfo: report error information
+ * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
+
2011-05-03 Jim Meyering <meyering@redhat.com>
bootstrap: avoid build failure when $GZIP is set
#endif
/* Provide details if errno was set. */
if (res == EAI_SYSTEM)
- dbgprintf ("system error: %s\n", strerror (err));
+ fprintf (stderr, "system error: %s\n", strerror (err));
return 1;
}