From f2b3078e6a20211233d4971653838e06d048296a Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Fri, 15 Jan 2016 11:07:41 -0700 Subject: 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. --- iconv/gconv_dl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'iconv/gconv_dl.c') 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 + 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); -- cgit 1.4.1