From: Johan Hedberg <johan.hedberg@gmail.com>
To: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Solve compilation warning usin gcc 4.5.0
Date: Wed, 11 Aug 2010 08:49:42 -0400 [thread overview]
Message-ID: <20100811124942.GA12156@jh-x301> (raw)
In-Reply-To: <1281517766-5612-1-git-send-email-santoscadenas@gmail.com>
Hi,
On Wed, Aug 11, 2010, Jose Antonio Santos Cadenas wrote:
> ---
> audio/control.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/audio/control.c b/audio/control.c
> index c8aba53..daa01ef 100644
> --- a/audio/control.c
> +++ b/audio/control.c
> @@ -446,7 +446,7 @@ static void avctp_set_state(struct control *control, avctp_state_t new_state)
>
> avctp_disconnected(control->dev);
>
> - if (old_state != AVCTP_STATE_CONNECTED)
> + if (old_state != AVDTP_SESSION_STATE_CONNECTED)
> break;
>
> value = FALSE;
That's the wrong fix to suppress the warning. The real problem is in the
beginning of the function:
avdtp_session_state_t old_state = control->state;
Obviously that should be avctp_state_t and not avdtp. Do you
want to send another patch to fix it?
Johan
next prev parent reply other threads:[~2010-08-11 12:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 9:09 [PATCH] Solve compilation warning usin gcc 4.5.0 Jose Antonio Santos Cadenas
2010-08-11 12:49 ` Johan Hedberg [this message]
2010-08-11 12:55 ` José Antonio Santos Cadenas
2010-08-11 13:06 ` Jose Antonio Santos Cadenas
2010-08-11 13:17 ` Johan Hedberg
2010-08-11 13:17 ` José Antonio Santos Cadenas
2010-08-11 13:40 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100811124942.GA12156@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=santoscadenas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox