Bug 145918
Summary: | Fix cast-align warning in Source/WebCore/platform/gtk/GtkVersioning.c | ||
---|---|---|---|
Product: | WebKit | Reporter: | Csaba Osztrogonác <ossy> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bugs-noreply, mcatanzaro, ossy |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 145121 |
Csaba Osztrogonác
../../Source/WebCore/platform/gtk/GtkVersioning.c:97:25: warning: cast from 'guchar *' (aka 'unsigned char *') to 'guint32 *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Wcast-align]
guint32 * src = (guint32 *) srcData;
^~~~~~~~~~~~~~~~~~~
../../Source/WebCore/platform/gtk/GtkVersioning.c:129:25: warning: cast from 'guchar *' (aka 'unsigned char *') to 'guint32 *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Wcast-align]
guint32 * src = (guint32 *) srcData;
^~~~~~~~~~~~~~~~~~~
../../Source/WebCore/platform/gtk/GtkVersioning.c:255:23: warning: cast from 'unsigned char *' to 'long *' increases required alignment from 1 to 8 [-Wcast-align]
long *workAreas = (long *)returnedData;
^~~~~~~~~~~~~~~~~~~~
3 warnings generated.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Michael Catanzaro
This has been open for so long because it is a tough one. It seems to be a real bug, not something we should silence with pragmas, in code that was copied out of GDK.