File factory-fix-compile.patch of Package ain

diff --git a/src/fs.cpp b/src/fs.cpp
index 7b422b8d7..0712cb3da 100644
--- a/src/fs.cpp
+++ b/src/fs.cpp
@@ -208,7 +208,11 @@ void ofstream::close()
 }
 #else // __GLIBCXX__
 
+#if BOOST_VERSION >= 107700
+static_assert(sizeof(*BOOST_FILESYSTEM_C_STR(fs::path())) == sizeof(wchar_t),
+#else
 static_assert(sizeof(*fs::path().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t),
+#endif // BOOST_VERSION >= 107700
     "Warning: This build is using boost::filesystem ofstream and ifstream "
     "implementations which will fail to open paths containing multibyte "
     "characters. You should delete this static_assert to ignore this warning, "
diff --git a/src/masternodes/rpc_vault.cpp b/src/masternodes/rpc_vault.cpp
index 838a5b251..62c73ef56 100644
--- a/src/masternodes/rpc_vault.cpp
+++ b/src/masternodes/rpc_vault.cpp
@@ -30,6 +30,7 @@ namespace {
             default:
                 return "unknown";
         }
+        return "unknown";
     }
 
     VaultState StringToVaultState(const std::string& stateStr)
openSUSE Build Service is sponsored by