[Bug 104521] New: spice-common doesn't compile with clang because of -Wcast-align
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Jan 7 09:24:33 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=104521
Bug ID: 104521
Summary: spice-common doesn't compile with clang because of
-Wcast-align
Product: Spice
Version: unspecified
Hardware: Other
OS: FreeBSD
Status: NEW
Severity: normal
Priority: medium
Component: canvas
Assignee: spice-bugs at lists.freedesktop.org
Reporter: lantw44 at gmail.com
gmake[4]: Entering directory '/home/lantw44/gnome/build/spice-gtk-git/src'
CC client_sw_canvas.lo
In file included from
/home/lantw44/gnome/source/spice-gtk-git/src/client_sw_canvas.c:20:
In file included from
/home/lantw44/gnome/source/spice-gtk-git/spice-common/common/sw_canvas.c:27:
/home/lantw44/gnome/source/spice-gtk-git/spice-common/common/canvas_base.c:600:28:
error: cast from 'uint8_t *' (aka 'unsigned char *') to 'uint32_t *' (aka
'unsigned int *') increases required alignment from 1 to 4
[-Werror,-Wcast-align]
enc_size = ntohl(*((uint32_t *)data));
It seems that this kind of error is already fixed in many places.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-bugs/attachments/20180107/3444db9f/attachment.html>
More information about the spice-bugs
mailing list