[Webkit-unassigned] [Bug 195004] New: [GTK] Format string errors detected by 32-bit build
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 25 07:29:51 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=195004
Bug ID: 195004
Summary: [GTK] Format string errors detected by 32-bit build
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at igalia.com
CC: bugs-noreply at webkitgtk.org
Looking over a 32-bit build log from Debian, to check for potential issues with 32-bit build:
/<<PKGBUILDDIR>>/Source/WebCore/PAL/pal/FileSizeFormatter.cpp: In function 'WTF::String fileSizeDescription(uint64_t)':
/<<PKGBUILDDIR>>/Source/WebCore/PAL/pal/FileSizeFormatter.cpp:36:31: warning: format '%tu' expects argument of type 'unsigned ptrdiff_t', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=]
return String::format("%tu bytes", size);
^~~~~~~~~~~ ~~~~
In file included from /<<PKGBUILDDIR>>/obj-i686-linux-gnu/DerivedSources/WebCore/unified-sources/UnifiedSource291.cpp:1:
/<<PKGBUILDDIR>>/Source/WebCore/page/linux/ResourceUsageOverlayLinux.cpp: In function 'WTF::String WebCore::formatByteNumber(size_t)':
/<<PKGBUILDDIR>>/Source/WebCore/page/linux/ResourceUsageOverlayLinux.cpp:59:27: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
return String::format("%lu", number);
^~~~~ ~~~~~~
In file included from /<<PKGBUILDDIR>>/obj-i686-linux-gnu/DerivedSources/WebCore/unified-sources/UnifiedSource300.cpp:5:
/<<PKGBUILDDIR>>/Source/WebCore/platform/SharedBuffer.cpp: In member function 'WTF::RefPtr<JSC::ArrayBuffer> WebCore::SharedBuffer::tryCreateArrayBuffer() const':
/<<PKGBUILDDIR>>/Source/WebCore/platform/SharedBuffer.cpp:124:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=]
WTFLogAlways("SharedBuffer::tryCreateArrayBuffer Unable to create buffer. Requested size was %zu x %lu\n", size(), sizeof(char));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190225/42a75e98/attachment-0001.html>
More information about the webkit-unassigned
mailing list