summaryrefslogtreecommitdiff
path: root/crypt
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 /crypt
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 'crypt')
-rw-r--r--crypt/crypt_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypt/crypt_util.c b/crypt/crypt_util.c
index 4b6490ebd6..1f42f59cb0 100644
--- a/crypt/crypt_util.c
+++ b/crypt/crypt_util.c
@@ -271,12 +271,12 @@ _ufc_prbits (ufc_long *a, int n)
t=8*i+j;
tmp|=(a[t/24] & BITMASK[t % 24])?bytemask[j]:0;
}
- (void)printf("%02x ",tmp);
+ (void)printf("%02lx ", tmp);
}
printf(" ");
}
-static void
+static void __attribute__ ((unused))
_ufc_set_bits (ufc_long v, ufc_long *b)
{
ufc_long i;