Changeset 243603 in webkit


Ignore:
Timestamp:
Mar 28, 2019 7:18:38 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Silence lot of warnings when compiling with clang
https://bugs.webkit.org/show_bug.cgi?id=196310

Patch by Víctor Manuel Jáquez Leal <vjaquez@igalia.com> on 2019-03-28
Reviewed by Michael Catanzaro.

Source/JavaScriptCore:

Initialize variable with default constructor.

  • API/glib/JSCOptions.cpp:

(jsc_options_foreach):

Source/WebCore:

No change in behavior.

  • accessibility/AccessibilityObject.h: add missing override

clause.

  • platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:

(webKitWebSrcChangeState): add missing format string to log.

  • platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h: add

missing virtual destructor.

  • platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:

add missing override clause and remove unused private member.

Source/WebKit:

  • UIProcess/API/glib/WebKitInjectedBundleClient.cpp: add missing

override clause.

  • WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h: add

missing override clause.

Location:
trunk/Source
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/glib/JSCOptions.cpp

    r241014 r243603  
    618618    if (Options::Availability::availability_ == Options::Availability::Normal \
    619619        || Options::isAvailable(Options::name_##ID, Options::Availability::availability_)) { \
    620         type_ defaultValue;                                             \
     620        type_ defaultValue { };                                         \
    621621        auto optionType = jscOptionsType(defaultValue);                 \
    622622        if (function (#name_, optionType, description_, userData))      \
  • trunk/Source/JavaScriptCore/ChangeLog

    r243596 r243603  
     12019-03-28  Víctor Manuel Jáquez Leal  <vjaquez@igalia.com>
     2
     3        Silence lot of warnings when compiling with clang
     4        https://bugs.webkit.org/show_bug.cgi?id=196310
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Initialize variable with default constructor.
     9
     10        * API/glib/JSCOptions.cpp:
     11        (jsc_options_foreach):
     12
    1132019-03-27  Saam Barati  <sbarati@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r243602 r243603  
     12019-03-28  Víctor Manuel Jáquez Leal  <vjaquez@igalia.com>
     2
     3        Silence lot of warnings when compiling with clang
     4        https://bugs.webkit.org/show_bug.cgi?id=196310
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        No change in behavior.
     9
     10        * accessibility/AccessibilityObject.h: add missing override
     11        clause.
     12        * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
     13        (webKitWebSrcChangeState): add missing format string to log.
     14        * platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h: add
     15        missing virtual destructor.
     16        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
     17        add missing override clause and remove unused private member.
     18
    1192019-03-28  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • trunk/Source/WebCore/accessibility/AccessibilityObject.h

    r242528 r243603  
    938938#if HAVE(ACCESSIBILITY)
    939939#if PLATFORM(GTK)
    940     AccessibilityObjectWrapper* wrapper() const;
     940    AccessibilityObjectWrapper* wrapper() const override;
    941941    void setWrapper(AccessibilityObjectWrapper*);
    942942#else
  • trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp

    r243537 r243603  
    739739
    740740#if GST_CHECK_VERSION(1, 14, 0)
    741     GST_DEBUG_OBJECT(src, gst_state_change_get_name(transition));
     741    GST_DEBUG_OBJECT(src, "%s", gst_state_change_get_name(transition));
    742742#endif
    743743    switch (transition) {
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h

    r242205 r243603  
    6969    public:
    7070        virtual void setVideoRectangle(const IntRect&) = 0;
     71        virtual ~HolePunchClient() = 0;
    7172    };
    7273
  • trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h

    r236016 r243603  
    125125
    126126private:
    127     bool isCoordinatedGraphicsLayer() const;
     127    bool isCoordinatedGraphicsLayer() const override;
    128128
    129129    void updatePlatformLayer();
     
    167167#endif
    168168    bool m_shouldUpdateVisibleRect: 1;
    169     bool m_shouldSyncLayerState: 1;
    170169    bool m_movingVisibleRect : 1;
    171170    bool m_pendingContentsScaleAdjustment : 1;
  • trunk/Source/WebKit/ChangeLog

    r243601 r243603  
     12019-03-28  Víctor Manuel Jáquez Leal  <vjaquez@igalia.com>
     2
     3        Silence lot of warnings when compiling with clang
     4        https://bugs.webkit.org/show_bug.cgi?id=196310
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * UIProcess/API/glib/WebKitInjectedBundleClient.cpp: add missing
     9        override clause.
     10        * WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h: add
     11        missing override clause.
     12
    1132019-03-27  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/Source/WebKit/UIProcess/API/glib/WebKitInjectedBundleClient.cpp

    r223953 r243603  
    132132    }
    133133
    134     RefPtr<API::Object> getInjectedBundleInitializationUserData(WebProcessPool&)
     134    RefPtr<API::Object> getInjectedBundleInitializationUserData(WebProcessPool&) override
    135135    {
    136136        GRefPtr<GVariant> data = webkitWebContextInitializeWebExtensions(m_webContext);
  • trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h

    r242205 r243603  
    138138        }
    139139
    140         void resize(const WebCore::IntSize& size)
     140        void resize(const WebCore::IntSize& size) override
    141141        {
    142142            if (m_layerTreeHost.m_surface)
     
    159159        }
    160160
    161         void handleDisplayRefreshMonitorUpdate(bool hasBeenRescheduled)
     161        void handleDisplayRefreshMonitorUpdate(bool hasBeenRescheduled) override
    162162        {
    163163            m_layerTreeHost.handleDisplayRefreshMonitorUpdate(hasBeenRescheduled);
Note: See TracChangeset for help on using the changeset viewer.