[Webkit-unassigned] [Bug 171028] New: -Wformat warning on HistoryController.cpp:295:5

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 19 18:49:55 PDT 2017


            Bug ID: 171028
           Summary: -Wformat warning on HistoryController.cpp:295:5
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at igalia.com

Cannot use enum as int without a cast:

[881/3415] Building CXX object Source/...ore.dir/loader/HistoryController.cpp.o
In file included from ../../Source/WTF/wtf/StdLibExtras.h:34:0,
                 from ../../Source/WTF/wtf/FastMalloc.h:26,
                 from ../../Source/WebCore/config.h:75,
                 from ../../Source/WebCore/loader/HistoryController.cpp:31:
../../Source/WebCore/loader/HistoryController.cpp: In member function ‘void WebCore::HistoryController::goToItem(WebCore::HistoryItem&, WebCore::FrameLoadType)’:
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘WebCore::FrameLoadType’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
../../Source/WebCore/loader/HistoryController.cpp:295:5: note: in expansion of macro ‘LOG’
     LOG(History, "HistoryController %p goToItem %p type=%d", this, &targetItem, type);

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/20170420/c50e5cbe/attachment-0001.html>

More information about the webkit-unassigned mailing list