From: Mathieu Desnoyers Date: Thu, 15 Apr 2021 19:47:22 +0000 (-0400) Subject: lttng_ust_static_assert: remove extra semicolons X-Git-Tag: v2.13.0-rc1~101 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b4c54822d66aaf7bc10fe27cb8bfd8622b370d6b;p=lttng-ust.git lttng_ust_static_assert: remove extra semicolons Also ensure none of recent nor compatibility lttng_ust_static_assert implementations end with a semicolon. Signed-off-by: Mathieu Desnoyers Change-Id: Ie43dbd3d0068ddc63c5317c73f9f831390662535 --- diff --git a/include/lttng/ust-compiler.h b/include/lttng/ust-compiler.h index 56077cac..7c858f87 100644 --- a/include/lttng/ust-compiler.h +++ b/include/lttng/ust-compiler.h @@ -80,7 +80,7 @@ * parameter is used in the tentative typedef so it is printed to the user. */ #define lttng_ust_static_assert(predicate, msg, c_identifier_msg) \ - typedef char lttng_ust_static_assert_##c_identifier_msg[2*!!(predicate)-1]; + typedef char lttng_ust_static_assert_##c_identifier_msg[2*!!(predicate)-1] #endif #endif /* _LTTNG_UST_COMPILER_H */ diff --git a/include/lttng/ust-tracepoint-event.h b/include/lttng/ust-tracepoint-event.h index 408e2a2b..0a97f0df 100644 --- a/include/lttng/ust-tracepoint-event.h +++ b/include/lttng/ust-tracepoint-event.h @@ -226,13 +226,13 @@ void __event_template_proto___##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args) #define _ctf_array_encoded(_type, _item, _src, _byte_order, \ _length, _encoding, _nowrite, \ _elem_type_base) \ - lttng_ust_ctf_array_element_type_is_supported(_type, _item) + lttng_ust_ctf_array_element_type_is_supported(_type, _item); #undef _ctf_sequence_encoded #define _ctf_sequence_encoded(_type, _item, _src, _byte_order, \ _length_type, _src_length, _encoding, _nowrite, \ _elem_type_base) \ - lttng_ust_ctf_array_element_type_is_supported(_type, _item) + lttng_ust_ctf_array_element_type_is_supported(_type, _item); #undef TP_FIELDS #define TP_FIELDS(...) __VA_ARGS__ /* Only one used in this phase */ diff --git a/include/lttng/ust-utils.h b/include/lttng/ust-utils.h index 2ebe917c..13d2a7ae 100644 --- a/include/lttng/ust-utils.h +++ b/include/lttng/ust-utils.h @@ -67,7 +67,7 @@ #define lttng_ust_ctf_array_element_type_is_supported(type, item) \ lttng_ust_static_assert(lttng_ust_is_integer_type(type), \ "Non-integer type `" #item "` not supported as element of CTF_ARRAY or CTF_SEQUENCE", \ - Non_integer_type__##item##__not_supported_as_element_of_CTF_ARRAY_or_CTF_SEQUENCE); + Non_integer_type__##item##__not_supported_as_element_of_CTF_ARRAY_or_CTF_SEQUENCE) /**