aboutsummaryrefslogtreecommitdiff
path: root/iconv
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2016-01-15 11:07:41 -0700
committerMartin Sebor <msebor@redhat.com>2016-01-15 11:07:41 -0700
commitf2b3078e6a20211233d4971653838e06d048296a (patch)
treec8f87652683c3788442b44a25e83bf82d22857c8 /iconv
parentFix build errors with -DNDEBUG. (diff)
downloadglibc-f2b3078e6a20211233d4971653838e06d048296a.tar.gz
glibc-f2b3078e6a20211233d4971653838e06d048296a.tar.bz2
glibc-f2b3078e6a20211233d4971653838e06d048296a.zip
Fix build failures with -DDEBUG.
[BZ #19443] * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string. [DEBUG] (_ufc_set_bits): Declare used. * iconv/gconv_dl.c [DEBUG]: Add a missing include directive. [DEBUG] (print_all): Declare used. * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert operands of the ternary ?: expression to target type. * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of calling the undeclared abort. * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/gconv_dl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/iconv/gconv_dl.c b/iconv/gconv_dl.c
index 86559d3f3f..4e9dfea437 100644
--- a/iconv/gconv_dl.c
+++ b/iconv/gconv_dl.c
@@ -219,6 +219,9 @@ libc_freeres_fn (free_mem)
#ifdef DEBUG
+
+#include <stdio.h>
+
static void
do_print (const void *nodep, VISIT value, int level)
{
@@ -231,7 +234,7 @@ do_print (const void *nodep, VISIT value, int level)
obj->name, obj->counter);
}
-static void
+static void __attribute__ ((used))
print_all (void)
{
__twalk (loaded, do_print);