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>
Tue, 3 Apr 2018 16:12:29 +0000 (12:12 -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 ae51e8a7a782e2c8773627dbd169e179af799d81..407a5f5ee521d277b6f659180461c1bb899bc84d 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.028166 seconds and 4 git commands to generate.