From: Jérémie Galarneau Date: Wed, 20 Dec 2017 19:52:33 +0000 (-0500) Subject: Fix: circular inclusion of lttng.h results in warning X-Git-Tag: v2.10.4~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e1c90e7503f0d4b20bbbb05fa19950573c3691f9;p=lttng-tools.git Fix: circular inclusion of lttng.h results in warning 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 --- diff --git a/include/lttng/condition/condition.h b/include/lttng/condition/condition.h index 71762ab01..7354ec26a 100644 --- a/include/lttng/condition/condition.h +++ b/include/lttng/condition/condition.h @@ -18,8 +18,6 @@ #ifndef LTTNG_CONDITION_H #define LTTNG_CONDITION_H -#include - #ifdef __cplusplus extern "C" { #endif diff --git a/tests/regression/tools/notification/base_client.c b/tests/regression/tools/notification/base_client.c index 5d801282c..043952d44 100644 --- a/tests/regression/tools/notification/base_client.c +++ b/tests/regression/tools/notification/base_client.c @@ -41,6 +41,7 @@ #include #include #include +#include static unsigned int nr_notifications = 0; static unsigned int nr_expected_notifications = 0; diff --git a/tests/regression/tools/notification/notification.c b/tests/regression/tools/notification/notification.c index de8734603..7af9258f9 100644 --- a/tests/regression/tools/notification/notification.c +++ b/tests/regression/tools/notification/notification.c @@ -50,6 +50,7 @@ #include #include #include +#include #include