Bug 190200 - -Wunused-variable in RenderLayer::updateScrollableAreaSet
Summary: -Wunused-variable in RenderLayer::updateScrollableAreaSet
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Michael Catanzaro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-10-02 08:46 PDT by Michael Catanzaro
Modified: 2018-10-03 04:04 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.48 KB, patch)
2018-10-02 09:10 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff
Patch (2.39 KB, patch)
2018-10-02 10:24 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff
Patch (2.41 KB, patch)
2018-10-03 01:06 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2018-10-02 08:46:13 PDT
We have an unused variable in RenderLayer::updateScrollableAreaSet.

I fixed it in r236719 but that broke a bunch of scrolling tests (bug #190197), so clearly I'm not competent enough to do this unreviewed. Let's try again.
Comment 1 Michael Catanzaro 2018-10-02 09:10:30 PDT
Created attachment 351394 [details]
Patch
Comment 2 Alex Christensen 2018-10-02 10:02:20 PDT
Comment on attachment 351394 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=351394&action=review

> Source/WebCore/rendering/RenderLayer.cpp:6369
> +    // Silence -Wunused-variable. The UNUSED_PARAM macro would work here, but the naming would be
> +    // off as it's not a parameter.

This comment seems excessively verbose.  Why not just use UNUSED_PARAM like we do in many other places, or make an UNUSED_VARIABLE macro?
Comment 3 Michael Catanzaro 2018-10-02 10:20:51 PDT
My vote is to make UNUSED_VARIABLE() in Compiler.h
Comment 4 Michael Catanzaro 2018-10-02 10:24:31 PDT
Did not build this yet... let's see if it passes EWS.
Comment 5 Michael Catanzaro 2018-10-02 10:24:48 PDT
Created attachment 351413 [details]
Patch
Comment 6 Michael Catanzaro 2018-10-03 00:56:53 PDT
(In reply to Michael Catanzaro from comment #4)
> Did not build this yet... let's see if it passes EWS.

Signs point to "no."
Comment 7 Michael Catanzaro 2018-10-03 01:06:59 PDT
Created attachment 351488 [details]
Patch
Comment 8 Yusuke Suzuki 2018-10-03 03:37:46 PDT
Comment on attachment 351488 [details]
Patch

r=me
Comment 9 WebKit Commit Bot 2018-10-03 04:03:55 PDT
Comment on attachment 351488 [details]
Patch

Clearing flags on attachment: 351488

Committed r236790: <https://trac.webkit.org/changeset/236790>
Comment 10 WebKit Commit Bot 2018-10-03 04:03:57 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2018-10-03 04:04:28 PDT
<rdar://problem/44969810>