Fix: circular inclusion of lttng.h results in warning
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 20 Dec 2017 19:52:33 +0000 (14:52 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Apr 2018 15:20:44 +0000 (11:20 -0400)
The circular inclusion of lttng.h, which includes all
public headers, from condition.h results in the following
warning for users of the API:

warning: ‘struct lttng_evaluation’ declared inside
parameter list will not be visible outside of this definition
or declaration

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/condition/condition.h
tests/regression/tools/notification/base_client.c
tests/regression/tools/notification/notification.c

index 71762ab017e0e9396530ff9e515d7447193e6e81..7354ec26af5aebe40ee9614d902725a36f52c8eb 100644 (file)
@@ -18,8 +18,6 @@
 #ifndef LTTNG_CONDITION_H
 #define LTTNG_CONDITION_H
 
-#include <lttng/lttng.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
index 5d801282ce565762f28b0c305025e4037fcddce9..043952d4457eac8f717a110a5b4befa28c4b320b 100644 (file)
@@ -41,6 +41,7 @@
 #include <lttng/notification/channel.h>
 #include <lttng/notification/notification.h>
 #include <lttng/trigger/trigger.h>
+#include <lttng/lttng-error.h>
 
 static unsigned int nr_notifications = 0;
 static unsigned int nr_expected_notifications = 0;
index de8734603fd309ba8d42db1cffac97015b5cd3e9..7af9258f983b4062dd52e088342f849c6edab27b 100644 (file)
@@ -50,6 +50,7 @@
 #include <lttng/notification/channel.h>
 #include <lttng/notification/notification.h>
 #include <lttng/trigger/trigger.h>
+#include <lttng/lttng.h>
 
 #include <tap/tap.h>
 
This page took 0.026903 seconds and 4 git commands to generate.