]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix shadowed variable warning
authorJán Tomko <jtomko@redhat.com>
Tue, 27 Jan 2015 12:36:10 +0000 (13:36 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 27 Jan 2015 12:43:23 +0000 (13:43 +0100)
commitd0ab79e9cdb930d99dcb2d9b017262d5efbfb0e0
treedb98b7b298e2c4dca7c8944cb3368c2020f9d1df
parent95da191376c4893ad3da1a7b37594f679fab9e03
Fix shadowed variable warning

libvirtd.c: In function 'daemonSetupAccessManager':
libvirtd.c:730:18: error: declaration of 'driver' shadows
  a global declaration [-Werror=shadow]
     const char **driver = (const char **)config->access_drivers;
                  ^
In file included from libvirtd.c:95:0:
../src/node_device/node_device_driver.h:43:36: error: shadowed
  declaration is here [-Werror=shadow]
 extern virNodeDeviceDriverStatePtr driver;
                                    ^
daemon/libvirtd.c