Fix build issues with gcc

This commit is contained in:
regnat 2020-09-14 14:12:47 +02:00
parent 634cb2a5ae
commit 888f7afe9f
5 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@ private:
public:
LocalBinaryCacheStore(
[[maybe_unused]] const std::string scheme,
const std::string scheme,
const Path & binaryCacheDir,
const Params & params)
: StoreConfig(params)

View file

@ -133,7 +133,7 @@ UDSRemoteStore::UDSRemoteStore(const Params & params)
UDSRemoteStore::UDSRemoteStore(
[[maybe_unused]] const std::string scheme,
const std::string scheme,
std::string socket_path,
const Params & params)
: UDSRemoteStore(params)

View file

@ -199,7 +199,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore, virtual S3BinaryCache
S3Helper s3Helper;
S3BinaryCacheStoreImpl(
[[maybe_unused]] const std::string & scheme,
const std::string & scheme,
const std::string & bucketName,
const Params & params)
: StoreConfig(params)

View file

@ -24,7 +24,7 @@ class SSHStore : public virtual RemoteStore, public virtual SSHStoreConfig
{
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)
, Store(params)
, RemoteStore(params)

View file

@ -820,6 +820,7 @@ struct Implementations
{
if (!registered) registered = new std::vector<StoreFactory>();
StoreFactory factory{
.uriSchemes = T::uriSchemes(),
.create =
([](const std::string & scheme, const std::string & uri, const Store::Params & params)
-> std::shared_ptr<Store>
@ -827,8 +828,7 @@ struct Implementations
.getConfig =
([]()
-> std::shared_ptr<StoreConfig>
{ return std::make_shared<TConfig>(StringMap({})); }),
.uriSchemes = T::uriSchemes()
{ return std::make_shared<TConfig>(StringMap({})); })
};
registered->push_back(factory);
}