qemu-e2k/monitor
Christophe de Dinechin ea73f37062 Fix build error when VNC is configured out
In hmp_change(), the variable hmp_mon is only used
by code under #ifdef CONFIG_VNC. This results in a build
error when VNC is configured out with the default of
treating warnings as errors:

monitor/hmp-cmds.c: In function ‘hmp_change’:
monitor/hmp-cmds.c:1946:17: error: unused variable ‘hmp_mon’ [-Werror=unused-variable]
1946 |     MonitorHMP *hmp_mon = container_of(mon, MonitorHMP, common);
     |                 ^~~~~~~

Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
Message-Id: <20190625123905.25434-1-dinechin@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2019-07-15 11:26:26 +01:00
..
Makefile.objs monitor: Split out monitor/monitor.c 2019-06-18 08:14:17 +02:00
hmp-cmds.c Fix build error when VNC is configured out 2019-07-15 11:26:26 +01:00
hmp.c monitor: Replace monitor_init() with monitor_init_{hmp, qmp}() 2019-06-18 08:14:17 +02:00
misc.c hw/core: Collect HMP command handlers in hw/core/ 2019-07-02 13:37:00 +02:00
monitor-internal.h monitor: Replace monitor_init() with monitor_init_{hmp, qmp}() 2019-06-18 08:14:17 +02:00
monitor.c monitor: Replace monitor_init() with monitor_init_{hmp, qmp}() 2019-06-18 08:14:17 +02:00
qmp-cmds.c hw/core: Collect QMP command handlers in hw/core/ 2019-07-02 13:37:00 +02:00
qmp.c monitor: Replace monitor_init() with monitor_init_{hmp, qmp}() 2019-06-18 08:14:17 +02:00
trace-events monitor: Split out monitor/monitor.c 2019-06-18 08:14:17 +02:00