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:45 +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 f40c04488ba8e1cac5b2cb7318a98355ecbbccd5..6effc42b047f02712720c1413520d4ccd79d804a 100644 (file)
@@ -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);
This page took 0.02743 seconds and 4 git commands to generate.