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
- From: Patrick McLean <chutzpah [at] gentoo.org>
- To: Lukas Slebodnik <lslebodn [at] redhat.com>
- Cc: nss-pam-ldapd-users [at] lists.arthurdejong.org, Tim Rice <tim [at] multitalents.net>
- Subject: Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d
- Date: Wed, 11 Mar 2015 13:27:17 -0700
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/
- [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d,
Patrick McLean
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d,
Lukas Slebodnik
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d,
Tim Rice
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d,
Lukas Slebodnik
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d, Patrick McLean
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d, Tim Rice
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d,
Lukas Slebodnik
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d,
Tim Rice
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d,
Lukas Slebodnik
- Prev by Date: Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d
- Next by Date: Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d
- Previous by thread: Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d
- Next by thread: Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d