From b8bfe46278d3bbe14fcaf693d8707360a39b04f1 Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Thu, 6 Oct 2016 11:37:36 +0200 Subject: [PATCH] - avoid compiler warning --- snapper/Btrfs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snapper/Btrfs.cc b/snapper/Btrfs.cc index ff4f3c6d..efc6363a 100644 --- a/snapper/Btrfs.cc +++ b/snapper/Btrfs.cc @@ -1524,13 +1524,13 @@ namespace snapper if (!deleted_subvolids.empty()) { +#ifdef HAVE_LIBBTRFS for (subvolid_t subvolid : deleted_subvolids) { -#ifdef HAVE_LIBBTRFS while (!does_subvolume_exist(subvolume_dir.fd(), subvolid)) sleep(1); -#endif } +#endif deleted_subvolids.clear(); -- 2.47.3