From 14b545e3dc23d01d7189372c7381c7e77e3b5afb Mon Sep 17 00:00:00 2001 From: Mohamad Gebai Date: Mon, 30 Sep 2013 16:47:30 -0400 Subject: [PATCH] Fix linking warning lttng_static_ctx should be extern in this header to avoid getting a warning when --warn-common is used. PS: Thanks to Yannick Brosseau for his help. Signed-off-by: Mohamad Gebai Signed-off-by: Mathieu Desnoyers --- include/lttng/ust-events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 0b8664c3..40955e2d 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -531,7 +531,7 @@ int lttng_attach_context(struct lttng_ust_context *context_param, struct lttng_ctx **ctx, struct lttng_session *session); void lttng_context_init(void); void lttng_context_exit(void); -struct lttng_ctx *lttng_static_ctx; /* Used by filtering */ +extern struct lttng_ctx *lttng_static_ctx; /* Used by filtering */ void lttng_transport_register(struct lttng_transport *transport); void lttng_transport_unregister(struct lttng_transport *transport); -- 2.34.1