lists.arthurdejong.org
RSS feed

Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d



On Wed, 11 Mar 2015 19:59:54 +0100
Lukas Slebodnik <lslebodn@redhat.com> wrote:
> On (11/03/15 11:47), Tim Rice wrote:
> >On Wed, 11 Mar 2015, Lukas Slebodnik wrote:
> >
> It is part of c99 standard
> @see section 7.21.6.1 draft[1]. (page 311)
> 
> Which platform do you mean and what solution is more portable?
> "%lu" fix warning just on specific architectures.

I am not sure which compilers don't support the '%zu', but if it is
part of the c99 spec it seems reasonable.

Attached is an updated patch with '%zu' instead of '%lu', it does not
generate warnings with either gcc or clang on x86_64 or x86.

> 
> LS
> 
> [1] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf

Attachment: 0011-cleanup-format-warnings-about-size_t.patch
Description: Text Data

-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/