clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / common / optional.hpp
index f34c5991fdfd4be070a1362d1968c4b3b88d2526..4bb774739a8aa870c03aa328040690e9a725e3a8 100644 (file)
 /*
  * Initialize an optional field as 'set' with a given value.
  */
-#define LTTNG_OPTIONAL_INIT_VALUE(val) { .is_set = 1, .value = val }
+#define LTTNG_OPTIONAL_INIT_VALUE(val)      \
+       {                                   \
+               .is_set = 1, .value = (val) \
+       }
 
 /* Set the value of an optional field. */
 #define LTTNG_OPTIONAL_SET(field_ptr, val)     \
This page took 0.022446 seconds and 4 git commands to generate.