Bug 140670

Summary: Fix cast-align warning in Source/WebCore/platform/efl/EflScreenUtilities.cpp
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, gyuyoung.kim, ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 145121    
Attachments:
Description Flags
Patch none

Description Csaba Osztrogonác 2015-01-20 03:45:45 PST
../../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* .
Comment 1 Csaba Osztrogonác 2015-01-20 03:46:31 PST
Created attachment 244981 [details]
Patch
Comment 2 WebKit Commit Bot 2015-01-21 00:46:40 PST
Comment on attachment 244981 [details]
Patch

Clearing flags on attachment: 244981

Committed r178821: <http://trac.webkit.org/changeset/178821>
Comment 3 WebKit Commit Bot 2015-01-21 00:46:43 PST
All reviewed patches have been landed.  Closing bug.