[Webkit-unassigned] [Bug 162553] New: Fix -Wformat warnings in WebLoaderStrategy
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 26 02:04:49 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=162553
Bug ID: 162553
Summary: Fix -Wformat warnings in WebLoaderStrategy
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Minor
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at igalia.com
CC: achristensen at apple.com, andersca at apple.com,
krollin at apple.com
Fix -Wformat warnings in WebLoaderStrategy:
[5257/6045] Building CXX object Source...rocess/Network/WebLoaderStrategy.cpp.o
In file included from ../../Source/WTF/wtf/StdLibExtras.h:33:0,
from ../../Source/WTF/wtf/FastMalloc.h:26,
from ../../Source/WebKit2/config.h:44,
from ../../Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp:26:
../../Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp: In member function âvoid WebKit::WebLoaderStrategy::scheduleLoad(WebCore::ResourceLoader&, WebCore::CachedResource*, bool)â:
../../Source/WTF/wtf/Assertions.h:386:91: warning: format â%lluâ expects argument of type âlong long unsigned intâ, but argument 8 has type âuint64_t {aka long unsigned int}â [-Wformat=]
#define LOG_ERROR(...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, __VA_ARGS__)
^
../../Source/WTF/wtf/Assertions.h:409:49: note: in expansion of macro âLOG_ERRORâ
#define RELEASE_LOG_ERROR(channel, format, ...) LOG_ERROR(format, ##__VA_ARGS__)
^~~~~~~~~
../../Source/WTF/wtf/Assertions.h:412:83: note: in expansion of macro âRELEASE_LOG_ERRORâ
#define RELEASE_LOG_ERROR_IF(isAllowed, channel, format, ...) do { if (isAllowed) RELEASE_LOG_ERROR(channel, format, ##__VA_ARGS__); } while (0)
^~~~~~~~~~~~~~~~~
../../Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp:61:67: note: in expansion of macro âRELEASE_LOG_ERROR_IFâ
#define RELEASE_LOG_ERROR_IF_ALLOWED(permissionChecker, fmt, ...) RELEASE_LOG_ERROR_IF(permissionChecker.isAlwaysOnLoggingAllowed(), Network, "%p - WebLoaderStrategy::" fmt, this, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~
../../Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp:217:9: note: in expansion of macro âRELEASE_LOG_ERROR_IF_ALLOWEDâ
RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader, "scheduleLoad: Unable to schedule resource with the NetworkProcess (frame = %p, priority = %d, pageID = %llu, frameID = %llu, resourceID = %llu)", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID, loadParameters.identifier, loadParameters.webFrameID);
^
../../Source/WTF/wtf/Assertions.h:386:91: warning: format â%lluâ expects argument of type âlong long unsigned intâ, but argument 9 has type âWebKit::ResourceLoadIdentifier {aka long unsigned int}â [-Wformat=]
#define LOG_ERROR(...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, __VA_ARGS__)
^
../../Source/WTF/wtf/Assertions.h:409:49: note: in expansion of macro âLOG_ERRORâ
#define RELEASE_LOG_ERROR(channel, format, ...) LOG_ERROR(format, ##__VA_ARGS__)
^~~~~~~~~
../../Source/WTF/wtf/Assertions.h:412:83: note: in expansion of macro âRELEASE_LOG_ERRORâ
#define RELEASE_LOG_ERROR_IF(isAllowed, channel, format, ...) do { if (isAllowed) RELEASE_LOG_ERROR(channel, format, ##__VA_ARGS__); } while (0)
^~~~~~~~~~~~~~~~~
../../Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp:61:67: note: in expansion of macro âRELEASE_LOG_ERROR_IFâ
#define RELEASE_LOG_ERROR_IF_ALLOWED(permissionChecker, fmt, ...) RELEASE_LOG_ERROR_IF(permissionChecker.isAlwaysOnLoggingAllowed(), Network, "%p - WebLoaderStrategy::" fmt, this, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~
../../Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp:217:9: note: in expansion of macro âRELEASE_LOG_ERROR_IF_ALLOWEDâ
RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader, "scheduleLoad: Unable to schedule resource with the NetworkProcess (frame = %p, priority = %d, pageID = %llu, frameID = %llu, resourceID = %llu)", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID, loadParameters.identifier, loadParameters.webFrameID);
^
../../Source/WTF/wtf/Assertions.h:386:91: warning: format â%lluâ expects argument of type âlong long unsigned intâ, but argument 10 has type âuint64_t {aka long unsigned int}â [-Wformat=]
#define LOG_ERROR(...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, __VA_ARGS__)
^
../../Source/WTF/wtf/Assertions.h:409:49: note: in expansion of macro âLOG_ERRORâ
#define RELEASE_LOG_ERROR(channel, format, ...) LOG_ERROR(format, ##__VA_ARGS__)
^~~~~~~~~
../../Source/WTF/wtf/Assertions.h:412:83: note: in expansion of macro âRELEASE_LOG_ERRORâ
#define RELEASE_LOG_ERROR_IF(isAllowed, channel, format, ...) do { if (isAllowed) RELEASE_LOG_ERROR(channel, format, ##__VA_ARGS__); } while (0)
^~~~~~~~~~~~~~~~~
../../Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp:61:67: note: in expansion of macro âRELEASE_LOG_ERROR_IFâ
#define RELEASE_LOG_ERROR_IF_ALLOWED(permissionChecker, fmt, ...) RELEASE_LOG_ERROR_IF(permissionChecker.isAlwaysOnLoggingAllowed(), Network, "%p - WebLoaderStrategy::" fmt, this, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~
../../Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp:217:9: note: in expansion of macro âRELEASE_LOG_ERROR_IF_ALLOWEDâ
RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader, "scheduleLoad: Unable to schedule resource with the NetworkProcess (frame = %p, priority = %d, pageID = %llu, frameID = %llu, resourceID = %llu)", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID, loadParameters.identifier, loadParameters.webFrameID);
^
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160926/f99570d2/attachment-0001.html>
More information about the webkit-unassigned
mailing list