Add LTTNG_PACKED ifdefs to validate that it is defined
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Mar 2019 16:41:30 +0000 (12:41 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Mar 2019 16:41:30 +0000 (12:41 -0400)
commitdb56acaff475812dfd774a52b3d54eae5c115315
tree162b2bc3c473b0bb5fee17830c0f65057de82e02
parent3207efeef9d6550e2c811c814c574e7cabb6f368
Add LTTNG_PACKED ifdefs to validate that it is defined

If LTTNG_PACKED is used to specify whether a structure is packed, but we
end up forgetting inclusion of lttng/ust-compiler.h (which defines it),
we end up silently _not_ packing the data structure, because
LTTNG_PACKED will be considered to be an identifier by the compiler,
and therefore simply ignored.

There are no such instances in lttng-ust, but let's add a ifdef check.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-abi.h
include/lttng/ust-ctl.h
include/lttng/ust-events.h
include/ust-comm.h
liblttng-ust/filter-bytecode.h
This page took 0.025862 seconds and 4 git commands to generate.