Using the old version of gcc 4.4.2 I did not meet the issue, but using 4.5.1, 
we have warning.

> -----Original Message-----
> From: Xu, Martin
> Sent: Thursday, January 06, 2011 5:46 PM
> To: ofono@ofono.org
> Cc: Xu, Martin; blutolan
> Subject: [PATCH] Fix compile warning at MeeGo The gcc version is MeeGo 4.5.1
> 
> From: blutolan <bluto...@blutolan-desktop.(none)>
> 
> ---
>  src/call-forwarding.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/call-forwarding.c b/src/call-forwarding.c
> index 512f223..36ba4f1 100644
> --- a/src/call-forwarding.c
> +++ b/src/call-forwarding.c
> @@ -246,7 +246,7 @@ static gboolean is_cfu_enabled(struct
> ofono_call_forwarding *cf,
>  static void sim_set_cf_indicator(struct ofono_call_forwarding *cf)
>  {
>       gboolean cfu_voice;
> -     struct ofono_call_forwarding_condition *cond;
> +     struct ofono_call_forwarding_condition *cond = NULL;
> 
>       cfu_voice = is_cfu_enabled(cf, &cond);
> 
> --
> 1.7.2.2

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to