summaryrefslogtreecommitdiffstats
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorLuiz Capitulino2009-06-09 23:24:57 +0200
committerBlue Swirl2009-06-10 18:54:33 +0200
commitb319820d4099ec6b98c9c260e06d519fc41d544c (patch)
treed99ff73427d67d963fc043971dd5925e5858041f /hw/qdev.c
parentmonitor: Introduce get_command_name() (diff)
downloadqemu-b319820d4099ec6b98c9c260e06d519fc41d544c.tar.gz
qemu-b319820d4099ec6b98c9c260e06d519fc41d544c.tar.xz
qemu-b319820d4099ec6b98c9c260e06d519fc41d544c.zip
Fix "defined but not used" warning
The function qemu_calculate_timeout() is only used when CONFIG_IOTHREAD is not defined. When CONFIG_IOTHREAD is defined, we have the following warning: vl.c:4389: warning: ‘qemu_calculate_timeout’ defined but not used This change fixes that by moving the #ifdef/#endif from main_loop() into qemu_calculate_timeout(). This encapsulates the logic and allow us to use qemu_calculate_timeout() when CONFIG_IOTHREAD is defined or not (suggested by Glauber Costa). Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hw/qdev.c')
0 files changed, 0 insertions, 0 deletions