Fix: disable array/sequence compile-time type check in C
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Aug 2022 19:10:58 +0000 (15:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Aug 2022 19:19:16 +0000 (15:19 -0400)
commitf04f60a5f613b5a850dbe0ee4e983f21803db1ed
tree4911e335e31ffbad5c4b76b8b1e8842b1520fe10
parent6a9a0c0646c1aaae98b6ae3a083d836a37c2d4c3
Fix: disable array/sequence compile-time type check in C

Disable this compile-time check in C. Indeed, the C implementation of
lttng_ust_is_pointer_type does not support opaque pointer types, because
it relies on pointer arithmetic.

Therefore, remove this check to keep supporting opaque pointers as
array/sequence elements in probe providers.

The worse that could happen is that users providing an unsupported
type as array/sequence element will end up with a meaningless integer
field.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I0fa170f7af7fc016027685e48076ebaf0366cc5b
include/lttng/ust-tracepoint-event.h
include/lttng/ust-utils.h
This page took 0.02494 seconds and 4 git commands to generate.