| Summary: | Fix cast-align warning in Source/WebCore/platform/efl/EflScreenUtilities.cpp | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Csaba Osztrogonác <ossy> | ||||
| Component: | New Bugs | Assignee: | 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: |
|
||||||
Created attachment 244981 [details]
Patch
Comment on attachment 244981 [details] Patch Clearing flags on attachment: 244981 Committed r178821: <http://trac.webkit.org/changeset/178821> All reviewed patches have been landed. Closing bug. |
../../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* .