Fix linking warning
authorMohamad Gebai <mohamad.gebai@polymtl.ca>
Mon, 30 Sep 2013 20:47:30 +0000 (16:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 30 Sep 2013 20:48:50 +0000 (16:48 -0400)
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 <mohamad.gebai@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-events.h

index 0b8664c3cbae0635c441f777e11d4d359e21ba5d..40955e2d385e34f5c6f5b04ff6e1279a9c4bcd90 100644 (file)
@@ -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);
This page took 0.024783 seconds and 4 git commands to generate.