NEW 145918
Fix cast-align warning in Source/WebCore/platform/gtk/GtkVersioning.c
https://bugs.webkit.org/show_bug.cgi?id=145918
Summary Fix cast-align warning in Source/WebCore/platform/gtk/GtkVersioning.c
Csaba Osztrogonác
Reported 2015-06-12 04:11:13 PDT
../../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
Michael Catanzaro
Comment 1 2015-12-31 19:46:23 PST
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.
Note You need to log in before you can comment on or make changes to this bug.