[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 06/16] vl: fix build when configured with no graphic
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 06/16] vl: fix build when configured with no graphic support |
Date: |
Wed, 13 Nov 2013 17:01:10 +0400 |
From: Antony Pavlov <address@hidden>
The following error occurs when building with 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 <address@hidden>
Reviewed-by: Stefan Weil <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
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:
--
1.7.10.4
- [Qemu-devel] [PULL 02/16] qemu-char: add Czech keymap file, (continued)
- [Qemu-devel] [PULL 02/16] qemu-char: add Czech keymap file, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 10/16] qga: Fix compilation for old versions of MinGW, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 01/16] qemu-char: add Czech characters to VNC keysyms, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 03/16] qemu-char: add support for U-prefixed symbols, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 04/16] qemu-char: add missing characters used in keymaps, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 07/16] qapi: Fix comment for create-type to match code., Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 13/16] trace: Remove trace.h from hw/usb/hcd-ehci.h (less dependencies), Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 11/16] console: Remove unused debug code, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 15/16] gtk: Replace conditional debug messages by trace methods, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 09/16] .travis.yml: basic compile and check recipes, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 06/16] vl: fix build when configured with no graphic support,
Michael Tokarev <=
- [Qemu-devel] [PULL 05/16] usb: drop unused USBNetState.inpkt field, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 16/16] qga: Fix shutdown command of guest agent to work with SysV, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 12/16] trace: Remove trace.h from console.h (less dependencies), Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 14/16] console: Replace conditional debug messages by trace methods, Michael Tokarev, 2013/11/13
- [Qemu-devel] [PULL 08/16] pci-assign: Fix error_report of pci-stub message, Michael Tokarev, 2013/11/13
- Re: [Qemu-devel] [PULL 00/16] [for-1.7] Trivial patches for 2013-11-13, Stefan Weil, 2013/11/13