[Webkit-unassigned] [Bug 182797] New: Don't capture maximumParallelReadCount in lambda WebKit::NetworkCache::Storage::traverse()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 14 10:51:59 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=182797

            Bug ID: 182797
           Summary: Don't capture maximumParallelReadCount in lambda
                    WebKit::NetworkCache::Storage::traverse()
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: wilander at apple.com

https://trac.webkit.org/changeset/228455 added a lambda capture of const unsigned maximumParallelReadCount. Such a capture is not needed and causes a build error when you run with -Wunused-lambda-capture:

WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp:911:79: error: lambda capture 'maximumParallelReadCount' is not required to be captured for this use [-Werror,-Wunused-lambda-capture]
            traverseOperation.activeCondition.wait(lock, [&traverseOperation, maximumParallelReadCount] {
                                                                              ^
1 error generated.

-- 
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/20180214/81f54f8f/attachment.html>


More information about the webkit-unassigned mailing list