lttng_ust_static_assert: remove extra semicolons
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Apr 2021 19:47:22 +0000 (15:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Apr 2021 19:48:22 +0000 (15:48 -0400)
Also ensure none of recent nor compatibility lttng_ust_static_assert
implementations end with a semicolon.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ie43dbd3d0068ddc63c5317c73f9f831390662535

include/lttng/ust-compiler.h
include/lttng/ust-tracepoint-event.h
include/lttng/ust-utils.h

index 56077cac3d799584573572af1d46c44e9372f114..7c858f87fb03bc5ce095797dc768eb32abed0d38 100644 (file)
@@ -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 */
index 408e2a2b62330cc57c49c2d13ef3d2f9dc975d5f..0a97f0dfcf80815a2df59d6bf3e17ddf99e9ff4f 100644 (file)
@@ -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 */
index 2ebe917ca1ccd4e2a957cc4272ce43dbd0046fb3..13d2a7ae1a3049d6815b707320977604678ea2be 100644 (file)
@@ -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)
 
 
 /**
This page took 0.02677 seconds and 4 git commands to generate.