Fix build issues with gcc
This commit is contained in:
parent
634cb2a5ae
commit
888f7afe9f
|
@ -20,7 +20,7 @@ private:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
LocalBinaryCacheStore(
|
LocalBinaryCacheStore(
|
||||||
[[maybe_unused]] const std::string scheme,
|
const std::string scheme,
|
||||||
const Path & binaryCacheDir,
|
const Path & binaryCacheDir,
|
||||||
const Params & params)
|
const Params & params)
|
||||||
: StoreConfig(params)
|
: StoreConfig(params)
|
||||||
|
|
|
@ -133,7 +133,7 @@ UDSRemoteStore::UDSRemoteStore(const Params & params)
|
||||||
|
|
||||||
|
|
||||||
UDSRemoteStore::UDSRemoteStore(
|
UDSRemoteStore::UDSRemoteStore(
|
||||||
[[maybe_unused]] const std::string scheme,
|
const std::string scheme,
|
||||||
std::string socket_path,
|
std::string socket_path,
|
||||||
const Params & params)
|
const Params & params)
|
||||||
: UDSRemoteStore(params)
|
: UDSRemoteStore(params)
|
||||||
|
|
|
@ -199,7 +199,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore, virtual S3BinaryCache
|
||||||
S3Helper s3Helper;
|
S3Helper s3Helper;
|
||||||
|
|
||||||
S3BinaryCacheStoreImpl(
|
S3BinaryCacheStoreImpl(
|
||||||
[[maybe_unused]] const std::string & scheme,
|
const std::string & scheme,
|
||||||
const std::string & bucketName,
|
const std::string & bucketName,
|
||||||
const Params & params)
|
const Params & params)
|
||||||
: StoreConfig(params)
|
: StoreConfig(params)
|
||||||
|
|
|
@ -24,7 +24,7 @@ class SSHStore : public virtual RemoteStore, public virtual SSHStoreConfig
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
SSHStore([[maybe_unused]] const std::string & scheme, const std::string & host, const Params & params)
|
SSHStore(const std::string & scheme, const std::string & host, const Params & params)
|
||||||
: StoreConfig(params)
|
: StoreConfig(params)
|
||||||
, Store(params)
|
, Store(params)
|
||||||
, RemoteStore(params)
|
, RemoteStore(params)
|
||||||
|
|
|
@ -820,6 +820,7 @@ struct Implementations
|
||||||
{
|
{
|
||||||
if (!registered) registered = new std::vector<StoreFactory>();
|
if (!registered) registered = new std::vector<StoreFactory>();
|
||||||
StoreFactory factory{
|
StoreFactory factory{
|
||||||
|
.uriSchemes = T::uriSchemes(),
|
||||||
.create =
|
.create =
|
||||||
([](const std::string & scheme, const std::string & uri, const Store::Params & params)
|
([](const std::string & scheme, const std::string & uri, const Store::Params & params)
|
||||||
-> std::shared_ptr<Store>
|
-> std::shared_ptr<Store>
|
||||||
|
@ -827,8 +828,7 @@ struct Implementations
|
||||||
.getConfig =
|
.getConfig =
|
||||||
([]()
|
([]()
|
||||||
-> std::shared_ptr<StoreConfig>
|
-> std::shared_ptr<StoreConfig>
|
||||||
{ return std::make_shared<TConfig>(StringMap({})); }),
|
{ return std::make_shared<TConfig>(StringMap({})); })
|
||||||
.uriSchemes = T::uriSchemes()
|
|
||||||
};
|
};
|
||||||
registered->push_back(factory);
|
registered->push_back(factory);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue