aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.hh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 05:24:33 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 05:24:33 +0100
commit559a8c44c3b59c046f4bb0bf049583ff234a095e (patch)
tree89681485d3cbfee39becc739b460807cb6c36d26 /src/libstore/local-store.hh
parent7ff1dca1fad24d0e8dd83172397d952ef6cb4de5 (diff)
Merge pull request #6258 from obsidiansystems/gcc-bug-ergonomics
Remove bug-avoiding `StoreConfig *` casts for settings (cherry picked from commit e3febfcd532adb23ca05ac465a2b907d6f1a3529) Change-Id: Ifeae276582fdbc781a38581df9de3da67a7e7bf9
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r--src/libstore/local-store.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh
index e97195f5b..fe26a0f27 100644
--- a/src/libstore/local-store.hh
+++ b/src/libstore/local-store.hh
@@ -40,12 +40,12 @@ struct LocalStoreConfig : virtual LocalFSStoreConfig
{
using LocalFSStoreConfig::LocalFSStoreConfig;
- Setting<bool> requireSigs{(StoreConfig*) this,
+ Setting<bool> requireSigs{this,
settings.requireSigs,
"require-sigs",
"Whether store paths copied into this store should have a trusted signature."};
- Setting<bool> readOnly{(StoreConfig*) this,
+ Setting<bool> readOnly{this,
false,
"read-only",
R"(