]> xenbits.xensource.com Git - libvirt.git/commit
remote: conditionally declare tty variable for non-Win32 platforms
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 4 Jul 2019 10:24:37 +0000 (11:24 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 5 Jul 2019 17:27:24 +0000 (18:27 +0100)
commit38e93721256fb1cf3e6dcb4bb43282bcd9ff5aed
tree3c0e4baab71b0f8bcbe930f2726a61c5dd5c6a3e
parent6a2e551f82c0c6244b5a2eb3265f1772b04e39fb
remote: conditionally declare tty variable for non-Win32 platforms

The 'tty' variable is only used on Win32. Instead of just annotating it
with ATTRIBUTE_UNUSED, make its declaration conditional on WIN32 so that
it is clear why it is not used.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/remote_driver.c