⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 101190 in webkit


Ignore:
Timestamp:
Nov 26, 2011, 2:16:36 AM (15 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Fix some warnings in WebCore GTK+
https://bugs.webkit.org/show_bug.cgi?id=73137

Patch by Martin Robinson <mrobinson@igalia.com> on 2011-11-26
Reviewed by Philippe Normand.

No new tests. This patch just fixes compilation warnings.

  • platform/gtk/CursorGtk.cpp:

(WebCore::createNamedCursor): Remove unused variable.

  • platform/gtk/RenderThemeGtk3.cpp:

(WebCore::RenderThemeGtk::paintSliderTrack): ASSERT_UNUSED instead of ASSERT.

  • platform/gtk/SharedTimerGtk.cpp: Ditto.

(WebCore::stopSharedTimer):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r101185 r101190  
     12011-11-26  Martin Robinson  <mrobinson@igalia.com>
     2
     3        [GTK] Fix some warnings in WebCore GTK+
     4        https://bugs.webkit.org/show_bug.cgi?id=73137
     5
     6        Reviewed by Philippe Normand.
     7
     8        No new tests. This patch just fixes compilation warnings.
     9
     10        * platform/gtk/CursorGtk.cpp:
     11        (WebCore::createNamedCursor): Remove unused variable.
     12        * platform/gtk/RenderThemeGtk3.cpp:
     13        (WebCore::RenderThemeGtk::paintSliderTrack): ASSERT_UNUSED instead of ASSERT.
     14        * platform/gtk/SharedTimerGtk.cpp: Ditto.
     15        (WebCore::stopSharedTimer):
     16
    1172011-11-25  Eric Carlson  <eric.carlson@apple.com>
    218
  • trunk/Source/WebCore/platform/gtk/CursorGtk.cpp

    r90788 r101190  
    4747        return c;
    4848
    49     IntSize cursorSize = IntSize(32, 32);
    5049    RefPtr<cairo_surface_t> source = adoptRef(cairo_image_surface_create_for_data(const_cast<unsigned char*>(cursor.bits), CAIRO_FORMAT_A1, 32, 32, 4));
    5150    RefPtr<cairo_surface_t> mask = adoptRef(cairo_image_surface_create_for_data(const_cast<unsigned char*>(cursor.mask_bits), CAIRO_FORMAT_A1, 32, 32, 4));
  • trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp

    r95901 r101190  
    597597{
    598598    ControlPart part = renderObject->style()->appearance();
    599     ASSERT(part == SliderHorizontalPart || part == SliderVerticalPart || part == MediaVolumeSliderPart);
     599    ASSERT_UNUSED(part, part == SliderHorizontalPart || part == SliderVerticalPart || part == MediaVolumeSliderPart);
    600600
    601601    GtkStyleContext* context = getStyleContext(GTK_TYPE_SCALE);
  • trunk/Source/WebCore/platform/gtk/SharedTimerGtk.cpp

    r91206 r101190  
    6363void stopSharedTimer()
    6464{
    65     gboolean s = FALSE;
    6665    if (sharedTimer == 0)
    6766        return;
    6867
    69     s = g_source_remove(sharedTimer);
    70     ASSERT(s);
     68    gboolean removedSource = g_source_remove(sharedTimer);
     69    ASSERT_UNUSED(removedSource, removedSource);
    7170    sharedTimer = 0;
    7271}
Note: See TracChangeset for help on using the changeset viewer.