From: Mohamad Gebai Date: Mon, 30 Sep 2013 20:47:30 +0000 (-0400) Subject: Fix linking warning X-Git-Tag: v2.4.0-rc1~33 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0478bb8c28e831722c9fdfadb5aac436b7f0bd27;p=lttng-ust.git 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 --- diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 74a3bc65..c563511d 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -543,7 +543,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);