mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
storagefile: conditional build of virStorageFileLoadBackendModule
The virStorageFileLoadBackendModule method is only used if either fs or gluster storage is built in, which doesn't happen on mingw leading to warning of an unused static function. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
564fdad9cb
commit
d2f5bb714f
@ -45,7 +45,9 @@ VIR_LOG_INIT("storage.storage_source_backend");
|
|||||||
static virStorageFileBackendPtr virStorageFileBackends[VIR_STORAGE_BACKENDS_MAX];
|
static virStorageFileBackendPtr virStorageFileBackends[VIR_STORAGE_BACKENDS_MAX];
|
||||||
static size_t virStorageFileBackendsCount;
|
static size_t virStorageFileBackendsCount;
|
||||||
|
|
||||||
#define STORAGE_FILE_MODULE_DIR LIBDIR "/libvirt/storage-file"
|
#if WITH_STORAGE_DIR || WITH_STORAGE_FS || WITH_STORAGE_GLUSTER
|
||||||
|
|
||||||
|
# define STORAGE_FILE_MODULE_DIR LIBDIR "/libvirt/storage-file"
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virStorageFileLoadBackendModule(const char *name,
|
virStorageFileLoadBackendModule(const char *name,
|
||||||
@ -69,7 +71,7 @@ virStorageFileLoadBackendModule(const char *name,
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif /* WITH_STORAGE_DIR || WITH_STORAGE_FS || WITH_STORAGE_GLUSTER */
|
||||||
|
|
||||||
static int virStorageFileBackendOnceInit(void)
|
static int virStorageFileBackendOnceInit(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user