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:33 +0000 (10:03 -0400)
commitcf4dd19dc45d52c6b308ec0f584483255c74a6db
tree1ddb36d4b70f9302b74e1bbe08a7c6e2b8085d10
parent6808bb0eed89335a7370c5e4c3571dc7382f7c3b
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.025403 seconds and 4 git commands to generate.