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 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/