Bug 145918 - Fix cast-align warning in Source/WebCore/platform/gtk/GtkVersioning.c
Summary: Fix cast-align warning in Source/WebCore/platform/gtk/GtkVersioning.c
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 145121
  Show dependency treegraph
 
Reported: 2015-06-12 04:11 PDT by Csaba Osztrogonác
Modified: 2015-12-31 19:46 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Osztrogonác 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.
Comment 1 Michael Catanzaro 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.