From b4a8eff7e0e7d6dec17e32a9695432e851a628ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 7 Oct 2016 16:39:46 -0400 Subject: [PATCH] Warning fix: forward declare struct lttng_ust_calibrate MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit lttng-ust's ust-ctl.h still refers to struct lttng_ust_calibrate which causes gcc to emit a "‘struct lttng_ust_calibrate’ is declared inside a parameter list" warning. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/lttng-ust-abi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/lttng-sessiond/lttng-ust-abi.h b/src/bin/lttng-sessiond/lttng-ust-abi.h index fb9c5a336..7a5062da7 100644 --- a/src/bin/lttng-sessiond/lttng-ust-abi.h +++ b/src/bin/lttng-sessiond/lttng-ust-abi.h @@ -47,6 +47,8 @@ #define LTTNG_UST_ABI_MAJOR_VERSION 7 #define LTTNG_UST_ABI_MINOR_VERSION 1 +struct lttng_ust_calibrate; + enum lttng_ust_instrumentation { LTTNG_UST_TRACEPOINT = 0, LTTNG_UST_PROBE = 1, -- 2.34.1