Changeset 128848 in webkit


Ignore:
Timestamp:
Sep 17, 2012 9:37:50 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Gtk] Remove the unused variable warning in GamepadsGtk.cpp using ASSERT_UNUSED macro
https://bugs.webkit.org/show_bug.cgi?id=96975

Patch by Vivek Galatage <vivekgalatage@gmail.com> on 2012-09-17
Reviewed by Kentaro Hara.

Replacing a simple ASSERT with ASSERT_UNUSED to avoid the warning.

No new tests as refactoring done.

  • platform/gtk/GamepadsGtk.cpp:

(WebCore::GamepadDeviceGtk::readCallback):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r128846 r128848  
     12012-09-17  Vivek Galatage  <vivekgalatage@gmail.com>
     2
     3        [Gtk] Remove the unused variable warning in GamepadsGtk.cpp using ASSERT_UNUSED macro
     4        https://bugs.webkit.org/show_bug.cgi?id=96975
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Replacing a simple ASSERT with ASSERT_UNUSED to avoid the warning.
     9
     10        No new tests as refactoring done.
     11
     12        * platform/gtk/GamepadsGtk.cpp:
     13        (WebCore::GamepadDeviceGtk::readCallback):
     14
    1152012-09-17  Roger Fong  <roger_fong@apple.com>
    216
  • trunk/Source/WebCore/platform/gtk/GamepadsGtk.cpp

    r121895 r128848  
    9292        return g_error_matches(error.get(), G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK);
    9393
    94     ASSERT(len == sizeof(event));
     94    ASSERT_UNUSED(len, len == sizeof(event));
    9595    gamepadDevice->updateForEvent(event);
    9696    return TRUE;
Note: See TracChangeset for help on using the changeset viewer.