vnc: avoid write only variables
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 13 Oct 2010 18:38:08 +0000 (18:38 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 13 Oct 2010 18:43:17 +0000 (18:43 +0000)
commit87e17291dacc7294dec596be63946698dacd18fb
tree17b3a32737aaad0d0ca68274b2e32e10fb95fe92
parent9fc27a6d7e2d49d28d5e2af0bf6e1703a980699b
vnc: avoid write only variables

Compiling with GCC 4.6.0 20100925 produced warnings:
/src/qemu/ui/vnc.c: In function 'vnc_client_cache_auth':
/src/qemu/ui/vnc.c:217:12: error: variable 'qdict' set but not used [-Werror=unused-but-set-variable]
/src/qemu/ui/vnc.c: In function 'vnc_display_open':
/src/qemu/ui/vnc.c:2526:9: error: variable 'acl' set but not used [-Werror=unused-but-set-variable]

Fix by making the variable declarations and their uses also conditional
to debug definition.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
ui/vnc.c