]> xenbits.xensource.com Git - libvirt.git/commit
libxl: fix unused functions
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 14 Aug 2016 01:24:37 +0000 (04:24 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 16 Aug 2016 00:12:05 +0000 (03:12 +0300)
commitcaaa1bd357a99ad9bffe96d8c7b397821e83ad85
tree25c254ca88c18ad040b462fe4a4cb9ce480d3e66
parent43a6b37b24aef46588cfc319b25c615828b94fb2
libxl: fix unused functions

Commit eee7bd4e introduced two functions: libxlDiskPathToID and
libxlDiskSectorSize.

However, as they're used only by code under #ifdef __linux__,
on non-Linux platforms it results in errors similar to this:

 CC       libxl/libvirt_driver_libxl_impl_la-libxl_driver.lo
libxl/libxl_driver.c:5263:1: error: unused function 'libxlDiskPathToID' [-Werror,-Wunused-function]
libxlDiskPathToID(const char *virtpath)
^
libxl/libxl_driver.c:5312:1: error: unused function 'libxlDiskSectorSize' [-Werror,-Wunused-function]
libxlDiskSectorSize(int domid, int devno)
^
2 errors generated.

Fix that by moving these functions under the #ifdef __linux__ block.
src/libxl/libxl_driver.c