[lttng-dev] [PATCH lttng-ust] Fix linking warning.

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Sep 30 16:49:09 EDT 2013


merged into master, stable-2.2 and stable-2.3. Thanks!

Mathieu

----- Original Message -----
> From: "Mohamad Gebai" <mohamad.gebai at gmail.com>
> To: lttng-dev at lists.lttng.org
> Cc: "Mohamad Gebai" <mohamad.gebai at polymtl.ca>
> Sent: Friday, September 27, 2013 3:44:08 PM
> Subject: [lttng-dev] [PATCH lttng-ust] 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 <mohamad.gebai at polymtl.ca>
> ---
>  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 74a3bc6..c563511 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);
> --
> 1.7.10.4
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list