This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
another warning
- From: Bruno Haible <bruno at clisp dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 29 Apr 2002 13:15:08 +0200 (CEST)
- Subject: another warning
Seen while compiling glibc-20020425 with --enable-all-warnings:
programs/ld-collate.c:3509: warning: field width is not type int (arg 7)
2002-04-26 Bruno Haible <bruno@clisp.org>
* locale/programs/ld-collate.c (collate_read): Cast first argument
for "%.*s" to int.
--- glibc-20020425/locale/programs/ld-collate.c.bak 2002-04-20 02:38:15.000000000 +0200
+++ glibc-20020425/locale/programs/ld-collate.c 2002-04-26 01:58:18.000000000 +0200
@@ -3505,7 +3505,7 @@
else
{
lr_error (ldfile, _("%s: bad symbol <%.*s>"), "LC_COLLATE",
- ldfile->token.val.str.lenmb,
+ (int) ldfile->token.val.str.lenmb,
ldfile->token.val.str.startmb);
break;
}