Fix: GCC unaligned pointer warnings
authorGabriel-Andrew Pollo-Guilbert <gabriel.pollo-guilbert@efficios.com>
Fri, 26 Jul 2019 22:00:07 +0000 (18:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Jul 2019 14:03:36 +0000 (10:03 -0400)
commit6197336891b2aef83429676192f49c329dc7aa2d
treef2485af1d059dfc2c0ae38ae5a8b0350eb248f63
parent5901ada772a40a1802b4a471beee37848497d6ce
Fix: GCC unaligned pointer warnings

The release of GCC 9 added the following warning:

-Waddress-of-packed-member, enabled by default, warns about an
unaligned pointer value from the address of a packed member of a
struct or union.

The warning is triggered in some place in LTTng-UST in cases where we
pass a pointer to get a result. Rather than passing the pointer directly
from the struct member, we get the result into a local storage, then
write into in the struct.

Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabriel.pollo-guilbert@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-comm/lttng-ust-comm.c
liblttng-ust/lttng-ust-comm.c
This page took 0.024756 seconds and 4 git commands to generate.