From: Wen Congyang <wency@cn.fujitsu.com>
To: Stefan Weil <sw@weilnetz.de>,
QEMU Trivial <qemu-trivial@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
QEMU Developer <qemu-devel@nongnu.org>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH for-2.4] vl: Fix compiler warning for builds without VLC
Date: Thu, 23 Jul 2015 09:43:54 +0800 [thread overview]
Message-ID: <55B046DA.6040308@cn.fujitsu.com> (raw)
In-Reply-To: <1437587610-26433-1-git-send-email-sw@weilnetz.de>
On 07/23/2015 01:53 AM, Stefan Weil wrote:
> This regression was caused by commit 70b94331.
vnc, not vlc in the title.
Reviewed-by: Wen Congyang <wency@cn.fujitsu.com>
>
> CC vl.o
> vl.c: In function ‘select_display’:
> vl.c:2064:12: error: unused variable ‘err’ [-Werror=unused-variable]
> Error *err = NULL;
> ^
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> vl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/vl.c b/vl.c
> index 5856396..0adbbd6 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -2061,7 +2061,6 @@ static void select_vgahw (const char *p)
>
> static DisplayType select_display(const char *p)
> {
> - Error *err = NULL;
> const char *opts;
> DisplayType display = DT_DEFAULT;
>
> @@ -2130,6 +2129,7 @@ static DisplayType select_display(const char *p)
> } else if (strstart(p, "vnc", &opts)) {
> #ifdef CONFIG_VNC
> if (*opts == '=') {
> + Error *err = NULL;
> if (vnc_parse(opts + 1, &err) == NULL) {
> error_report_err(err);
> exit(1);
>
WARNING: multiple messages have this Message-ID (diff)
From: Wen Congyang <wency@cn.fujitsu.com>
To: Stefan Weil <sw@weilnetz.de>,
QEMU Trivial <qemu-trivial@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
QEMU Developer <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH for-2.4] vl: Fix compiler warning for builds without VLC
Date: Thu, 23 Jul 2015 09:43:54 +0800 [thread overview]
Message-ID: <55B046DA.6040308@cn.fujitsu.com> (raw)
In-Reply-To: <1437587610-26433-1-git-send-email-sw@weilnetz.de>
On 07/23/2015 01:53 AM, Stefan Weil wrote:
> This regression was caused by commit 70b94331.
vnc, not vlc in the title.
Reviewed-by: Wen Congyang <wency@cn.fujitsu.com>
>
> CC vl.o
> vl.c: In function ‘select_display’:
> vl.c:2064:12: error: unused variable ‘err’ [-Werror=unused-variable]
> Error *err = NULL;
> ^
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> vl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/vl.c b/vl.c
> index 5856396..0adbbd6 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -2061,7 +2061,6 @@ static void select_vgahw (const char *p)
>
> static DisplayType select_display(const char *p)
> {
> - Error *err = NULL;
> const char *opts;
> DisplayType display = DT_DEFAULT;
>
> @@ -2130,6 +2129,7 @@ static DisplayType select_display(const char *p)
> } else if (strstart(p, "vnc", &opts)) {
> #ifdef CONFIG_VNC
> if (*opts == '=') {
> + Error *err = NULL;
> if (vnc_parse(opts + 1, &err) == NULL) {
> error_report_err(err);
> exit(1);
>
next prev parent reply other threads:[~2015-07-23 4:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 17:53 [Qemu-trivial] [PATCH for-2.4] vl: Fix compiler warning for builds without VLC Stefan Weil
2015-07-22 17:53 ` [Qemu-devel] " Stefan Weil
2015-07-23 1:43 ` Wen Congyang [this message]
2015-07-23 1:43 ` Wen Congyang
2015-07-23 5:37 ` [Qemu-trivial] " Paolo Bonzini
2015-07-23 5:37 ` [Qemu-devel] " Paolo Bonzini
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=55B046DA.6040308@cn.fujitsu.com \
--to=wency@cn.fujitsu.com \
--cc=armbru@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=sw@weilnetz.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.