Received: from eggs.gnu.org ([2001:4830:134:3::10]:56168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgaDr-0001kA-Ll for qemu-devel@nongnu.org; Wed, 13 Nov 2013 08:11:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VgaDf-0001kK-Mv for qemu-devel@nongnu.org; Wed, 13 Nov 2013 08:11:07 -0500 From: Michael Tokarev Date: Wed, 13 Nov 2013 17:01:10 +0400 Message-Id: <1384347680-15976-7-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1384347680-15976-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1384347680-15976-1-git-send-email-mjt@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 06/16] vl: fix build when configured with no graphic support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-trivial@nongnu.org, Michael Tokarev , Antony Pavlov , qemu-devel@nongnu.org From: Antony Pavlov The following error occurs when building with no graphic output support: vl.c: In function =E2=80=98main=E2=80=99: vl.c:2829:19: error: variable =E2=80=98ds=E2=80=99 set but not used [-W= error=3Dunused-but-set-variable] DisplayState *ds; ^ cc1: all warnings being treated as errors To reproduce this issue, just run: $ ./configure \ --disable-curses \ --disable-sdl \ --disable-cocoa \ --disable-gtk \ --disable-vnc \ --enable-werror $ make vl.o Signed-off-by: Antony Pavlov Reviewed-by: Stefan Weil Signed-off-by: Michael Tokarev --- vl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vl.c b/vl.c index 4ad15b8..b5ec266 100644 --- a/vl.c +++ b/vl.c @@ -4267,6 +4267,7 @@ int main(int argc, char **argv, char **envp) /* init local displays */ switch (display_type) { case DT_NOGRAPHIC: + (void)ds; /* avoid warning if no display is configured */ break; #if defined(CONFIG_CURSES) case DT_CURSES: --=20 1.7.10.4