[PATCH 0/2] Another set of macOS pre-enablement patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch set eliminates warnings detected by clang with respect
to type alignments. Vittorio Toso had submitted something
similar. In this version, I took into account comments by
Christophe Fergeau regarding how to know which casts were
aligned and which ones were not aligned. I added some
instrumentation to detect the two cases.

The casts that are supposed to be aligned will issue a warning
if data is actually misaligned.

The casts that are known to be misaligned can still be checked
by setting environment variable SPICE_DEBUG_ALIGNMENT=1

Christophe de Dinechin (2):
 Style adjustment
 Avoid clang warnings on casts with stricter alignment requirements

common/canvas_base.c |  14 ++++---
common/mem.c         |  24 ++++++++++++
common/mem.h         |  33 +++++++++++++++-
common/sw_canvas.c   | 104 +++++++++++++++++++++++++--------------------------
4 files changed, 114 insertions(+), 61 deletions(-)

-- 
2.11.0 (Apple Git-81)

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]