This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
 	    }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]