Received: from eggs.gnu.org ([2001:4830:134:3::10]:35995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHyDB-0003db-5q for qemu-devel@nongnu.org; Wed, 22 Jul 2015 13:53:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHyD1-0008Ob-S3 for qemu-devel@nongnu.org; Wed, 22 Jul 2015 13:53:45 -0400 From: Stefan Weil Date: Wed, 22 Jul 2015 19:53:30 +0200 Message-Id: <1437587610-26433-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [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: QEMU Trivial , Paolo Bonzini , Markus Armbruster Cc: Peter Maydell , QEMU Developer , Stefan Weil This regression was caused by commit 70b94331. 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(-) 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 2.1.4