[libvirt] [PATCH] rbd: fix build with LIBRBD_VERSION_CODE <= 265

Ján Tomko jtomko at redhat.com
Wed Apr 3 12:17:47 UTC 2019


Add ATTRIBUTE_UNUSED to the volStorageBackendRBDGetFlags stub.

Fixes: 21deeaf02fdf216b08210fc899579736973ca81d

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
Pushed as a build breaker fix

 src/storage/storage_backend_rbd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c
index 29f6a5de60..f8c968e682 100644
--- a/src/storage/storage_backend_rbd.c
+++ b/src/storage/storage_backend_rbd.c
@@ -501,8 +501,8 @@ virStorageBackendRBDSetAllocation(virStorageVolDefPtr vol,
 
 #else
 static int
-volStorageBackendRBDGetFlags(rbd_image_t image,
-                             const char *volname,
+volStorageBackendRBDGetFlags(rbd_image_t image ATTRIBUTE_UNUSED,
+                             const char *volname ATTRIBUTE_UNUSED,
                              uint64_t *flags)
 {
     *flags = 0;
-- 
2.19.2




More information about the libvir-list mailing list