[Webkit-unassigned] [Bug 140670] New: Fix cast-align warning in Source/WebCore/platform/efl/EflScreenUtilities.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 20 03:45:45 PST 2015


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

            Bug ID: 140670
           Summary: Fix cast-align warning in
                    Source/WebCore/platform/efl/EflScreenUtilities.cpp
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ossy at webkit.org
                CC: gyuyoung.kim at webkit.org

../../Source/WebCore/platform/efl/EflScreenUtilities.cpp:134:39: warning: cast from 'unsigned char *' to 'int *' increases required alignment from 1 to 4 [-Wc
ast-align]
    return ecore_x_cursor_new(window, (int*)(buffer), cursorSize.width(), cursorSize.height(), hotSpot.x(), hotSpot.y());
                                      ^~~~~~~~~~~~~~
1 warning generated.
----

The buffer is the return value of cairo_image_surface_get_data() which is guaranteed to be 4 byte aligned, it's safe to cast to int* .

-- 
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/20150120/a24c49c0/attachment-0002.html>


More information about the webkit-unassigned mailing list