Blame SOURCES/dmpd-space-map-noop-explicit-option-return.patch

23e055
From 2d45ae3ca1dbd6ab04b8b99f627555c0092e7d4e Mon Sep 17 00:00:00 2001
23e055
From: Joe Thornber <ejt@redhat.com>
23e055
Date: Wed, 5 Jun 2019 11:07:28 +0100
23e055
Subject: [PATCH] [space-map/noop] Be explicit about returning an optional
23e055
23e055
Needed for older version of g++
23e055
23e055
(cherry picked from commit 5e5409f48b5403d2c6dffd9919b35ad77d6fb7b4)
23e055
---
23e055
 persistent-data/space-maps/noop.h | 2 +-
23e055
 1 file changed, 1 insertion(+), 1 deletion(-)
23e055
23e055
diff --git a/persistent-data/space-maps/noop.h b/persistent-data/space-maps/noop.h
23e055
index 500dae8..6f71290 100644
23e055
--- a/persistent-data/space-maps/noop.h
23e055
+++ b/persistent-data/space-maps/noop.h
23e055
@@ -61,7 +61,7 @@ namespace persistent_data {
23e055
 
23e055
 		maybe_block find_free(span_iterator &it) {
23e055
 			fail();
23e055
-			return 0;
23e055
+			return boost::optional<block_address>(0);
23e055
 		}
23e055
 
23e055
 		bool count_possibly_greater_than_one(block_address b) const {
23e055
-- 
23e055
1.8.3.1
23e055