From: Arvin Schnell Date: Thu, 6 Oct 2016 09:37:36 +0000 (+0200) Subject: - avoid compiler warning X-Git-Tag: v0.4.0~14^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=refs%2Fpull%2F276%2Fhead;p=thirdparty%2Fsnapper.git - avoid compiler warning --- 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();