[Webkit-unassigned] [Bug 191416] New: [Win] UDis86Disassembler.cpp: warning: format specifies type 'unsigned long' but the argument has type 'uintptr_t' (aka 'unsigned long long')
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 8 00:24:02 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=191416
Bug ID: 191416
Summary: [Win] UDis86Disassembler.cpp: warning: format
specifies type 'unsigned long' but the argument has
type 'uintptr_t' (aka 'unsigned long long')
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: Hironori.Fujii at sony.com
[Win] UDis86Disassembler.cpp: warning: format specifies type 'unsigned long' but the argument has type 'uintptr_t' (aka 'unsigned long long')
MSVC reports following compilation warning:
> c:\webkit\ga\source\javascriptcore\disassembler\udis86disassembler.cpp(52): warning C4477: 'snprintf' : format string '%lx' requires an argument of type 'unsigned long', but variadic argument 1 has type 'uintptr_t' (compiling source file C:\webkit\ga\WebKitBuild\Debug\DerivedSources\JavaScriptCore\unified-sources\UnifiedSource55.cpp)
> c:\webkit\ga\source\javascriptcore\disassembler\udis86disassembler.cpp(52): note: consider using '%llx' in the format string (compiling source file C:\webkit\ga\WebKitBuild\Debug\DerivedSources\JavaScriptCore\unified-sources\UnifiedSource55.cpp)
> c:\webkit\ga\source\javascriptcore\disassembler\udis86disassembler.cpp(52): note: consider using '%Ix' in the format string (compiling source file C:\webkit\ga\WebKitBuild\Debug\DerivedSources\JavaScriptCore\unified-sources\UnifiedSource55.cpp)
> c:\webkit\ga\source\javascriptcore\disassembler\udis86disassembler.cpp(52): note: consider using '%I64x' in the format string (compiling source file C:\webkit\ga\WebKitBuild\Debug\DerivedSources\JavaScriptCore\unified-sources\UnifiedSource55.cpp)
Clang-cl reports following compilation warning:
> In file included from DerivedSources\JavaScriptCore\unified-sources\UnifiedSource55.cpp:4:
> ..\..\Source\JavaScriptCore\disassembler/UDis86Disassembler.cpp(52,55): warning: format specifies type 'unsigned long' but the argument has type 'uintptr_t' (aka 'unsigned long long') [-Wformat]
> snprintf(pcString, sizeof(pcString), "0x%lx", static_cast<uintptr_t>(currentPC));
> ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> %llx
> 1 warning generated.
This code has been introduced in Bug 190273.
--
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/20181108/148c2579/attachment.html>
More information about the webkit-unassigned
mailing list