projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fix: POD static_assert check fails on lttng_event_exclusions
[lttng-tools.git]
/
src
/
common
/
optional.hpp
diff --git
a/src/common/optional.hpp
b/src/common/optional.hpp
index f34c5991fdfd4be070a1362d1968c4b3b88d2526..4bb774739a8aa870c03aa328040690e9a725e3a8 100644
(file)
--- a/
src/common/optional.hpp
+++ b/
src/common/optional.hpp
@@
-88,7
+88,10
@@
/*
* Initialize an optional field as 'set' with a given value.
*/
/*
* 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) \
/* Set the value of an optional field. */
#define LTTNG_OPTIONAL_SET(field_ptr, val) \
This page took
0.025271 seconds
and
4
git commands to generate.