Clean-up: modernize pretty_xml.cpp
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl-health.cpp
index fd6279ade1aaa49110924a7818987305e75e793b..c490f8993c0c1ca55b31613dbad82d1142bce47b 100644 (file)
@@ -14,6 +14,7 @@
 #include "lttng-ctl-helper.hpp"
 
 #include <common/compat/errno.hpp>
+#include <common/compiler.hpp>
 #include <common/defaults.hpp>
 #include <common/utils.hpp>
 
@@ -48,7 +49,7 @@ struct lttng_health {
        char health_sock_path[PATH_MAX];
        /* For consumer health only */
        enum lttng_health_consumerd consumerd_type;
-       struct lttng_health_thread thread[];
+       struct lttng_health_thread thread[LTTNG_FLEXIBLE_ARRAY_MEMBER_LENGTH];
 };
 
 static const char *get_sessiond_thread_name(health_type_sessiond type)
This page took 0.023129 seconds and 4 git commands to generate.