This is the mail archive of the libc-alpha@sourceware.org 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]

[PATCH] S390: Get rid of format warning in mem.c


Hi,

on 31bit s390 i get the following warning/error:
gcc mem.c -c ...
mem.c: In function 'gc':
mem.c:428:4: error: format '%zu' expects argument of type 'size_t', but argument 2 has type 'int' [-Werror=format=]
       dbnames[db - dbs]);
       ^
cc1: all warnings being treated as errors


This patch adds a cast to size_t in order to disable the warning.

Ok to commit?

Bye
Stefan


---
2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>

	* nscd/mem.c (gc):
	Cast argument to size_t to disable format warning.



Attachment: mem_c_12122014
Description: Text document


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