After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768199 - [PATCH] Fix -Wformat warning
[PATCH] Fix -Wformat warning
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-29 17:34 UTC by Xin Li
Modified: 2016-10-12 11:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use %z instead of %l for size_t, fixes -Wformat warning (916 bytes, patch)
2016-06-29 17:34 UTC, Xin Li
none Details | Review

Description Xin Li 2016-06-29 17:34:11 UTC
Created attachment 330605 [details] [review]
Use %z instead of %l for size_t, fixes -Wformat warning

Hi,

I'd like to propose the attached patch which fixes a -Wformat warning, basically use %z instead of %l for size_t.

Thanks for your consideration!
Comment 1 Xin Li 2016-09-09 16:59:05 UTC
We have integrated the change in Android as: https://android.googlesource.com/platform/external/libxml2/+/c2ea0f0de6f86bdb8bb4d76acbf5c37f90a3fa02
Comment 2 Nick Wellnhofer 2016-10-12 11:37:42 UTC
Fixed with the following commit:

https://git.gnome.org/browse/libxml2/commit/?id=c2545cbb6d9a87e3e0bce167eabcb8f3c9153edc