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.11.0-rc1~321 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=25040abcb14b44939248abeea1103282c0a6e416;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 ae51e8a7a..407a5f5ee 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