From: Mathieu Desnoyers Date: Tue, 26 Mar 2019 16:41:30 +0000 (-0400) Subject: Add LTTNG_PACKED ifdefs to validate that it is defined X-Git-Tag: v2.12.0-rc1~48 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;ds=sidebyside;h=db56acaff475812dfd774a52b3d54eae5c115315;hp=db56acaff475812dfd774a52b3d54eae5c115315;p=lttng-ust.git 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 ---