<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - spice-common doesn't compile with clang because of -Wcast-align"
href="https://bugs.freedesktop.org/show_bug.cgi?id=104521">104521</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>spice-common doesn't compile with clang because of -Wcast-align
</td>
</tr>
<tr>
<th>Product</th>
<td>Spice
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>canvas
</td>
</tr>
<tr>
<th>Assignee</th>
<td>spice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lantw44@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>