Received: from eggs.gnu.org ([2001:4830:134:3::10]:35682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI5V2-0002kl-8q for qemu-devel@nongnu.org; Wed, 22 Jul 2015 21:40:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZI5Ux-0007iz-V6 for qemu-devel@nongnu.org; Wed, 22 Jul 2015 21:40:40 -0400 References: <1437587610-26433-1-git-send-email-sw@weilnetz.de> From: Wen Congyang Message-ID: <55B046DA.6040308@cn.fujitsu.com> Date: Thu, 23 Jul 2015 09:43:54 +0800 MIME-Version: 1.0 In-Reply-To: <1437587610-26433-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH for-2.4] vl: Fix compiler warning for builds without VLC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , QEMU Trivial , Paolo Bonzini , Markus Armbruster Cc: Peter Maydell , QEMU Developer 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 >=20 > CC vl.o > vl.c: In function =E2=80=98select_display=E2=80=99: > vl.c:2064:12: error: unused variable =E2=80=98err=E2=80=99 [-Werror=3Dunu= sed-variable] > Error *err =3D NULL; > ^ > Signed-off-by: Stefan Weil > --- > vl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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) > =20 > static DisplayType select_display(const char *p) > { > - Error *err =3D NULL; > const char *opts; > DisplayType display =3D DT_DEFAULT; > =20 > @@ -2130,6 +2129,7 @@ static DisplayType select_display(const char *p) > } else if (strstart(p, "vnc", &opts)) { > #ifdef CONFIG_VNC > if (*opts =3D=3D '=3D') { > + Error *err =3D NULL; > if (vnc_parse(opts + 1, &err) =3D=3D NULL) { > error_report_err(err); > exit(1); >=20