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)
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>

No differences found
This page took 0.027706 seconds and 4 git commands to generate.