qemu-char: Avoid unused variable warning in some configs
commit390999910bf1b1be59e04a0314867f4dea7a28f3
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 24 Jan 2013 16:14:39 +0000 (24 16:14 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:27:16 +0000 (26 13:27 +0000)
treec6cd668a0195549a7dfc26e75da12a8c05a3e2b1
parent23bf49b5eca716aaad073f2b47613434e1515cb5
qemu-char: Avoid unused variable warning in some configs

Avoid unused variable warnings:
qemu-char.c: In function 'qmp_chardev_open_port':
qemu-char.c:3132: warning: unused variable 'fd'
qemu-char.c:3132: warning: unused variable 'flags'

in configurations with neither HAVE_CHARDEV_TTY nor
HAVE_CHARDEV_PARPORT set.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qemu-char.c