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 14:00:59 -0700
On Wed, 11 Mar 2015 13:27:17 -0700 Patrick McLean <chutzpah@gentoo.org> wrote: > > 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. > After some extra testing, that compiles on gcc-4.9 with no warnings, but gcc-4.8 warns that '%zu' is not supported before c99. Attached is another updated patch to use casts to silence the warning on (hopefully) all platforms.
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/
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d, (continued)
- 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, Patrick McLean
- Re: [PATCH] warnings cleanup: size_t should be formatted %lu rather than %d, Jakub Hrozek
- 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