From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb0wS-0004ti-EP for qemu-devel@nongnu.org; Tue, 29 Oct 2013 00:30:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vb0wJ-0003aI-V1 for qemu-devel@nongnu.org; Tue, 29 Oct 2013 00:30:08 -0400 From: Antony Pavlov Date: Tue, 29 Oct 2013 08:36:31 +0400 Message-Id: <1383021391-3152-1-git-send-email-antonynpavlov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] 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, qemu-devel@nongnu.org, Antony Pavlov The following error occurs when building no graphic output support: vl.c: In function ‘main’: vl.c:2829:19: error: variable ‘ds’ set but not used [-Werror=unused-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 --- vl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vl.c b/vl.c index b42ac67..8fbf25e 100644 --- a/vl.c +++ b/vl.c @@ -4269,6 +4269,7 @@ int main(int argc, char **argv, char **envp) /* init local displays */ switch (display_type) { case DT_NOGRAPHIC: + (void)ds; break; #if defined(CONFIG_CURSES) case DT_CURSES: -- 1.8.4.rc3