diff options
author | Graham Bennett <graham@grahambennett.org> | 2022-10-22 14:25:35 +0100 |
---|---|---|
committer | Graham Bennett <graham@grahambennett.org> | 2022-10-22 15:16:46 +0100 |
commit | 4563e803633d44ec57dfc4515f0c42c8855c018b (patch) | |
tree | b9230e47e2076befd918e733fc2d8dd426f18589 /src/libstore/globals.cc | |
parent | c5fd34a14e2a271b66839b35f500caeae3368be2 (diff) |
Fix C++20 warnings
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r-- | src/libstore/globals.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index ff658c428..c264014be 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -218,19 +218,19 @@ template<> void BaseSetting<SandboxMode>::convertToArg(Args & args, const std::s .longName = name, .description = "Enable sandboxing.", .category = category, - .handler = {[=]() { override(smEnabled); }} + .handler = {[this]() { override(smEnabled); }} }); args.addFlag({ .longName = "no-" + name, .description = "Disable sandboxing.", .category = category, - .handler = {[=]() { override(smDisabled); }} + .handler = {[this]() { override(smDisabled); }} }); args.addFlag({ .longName = "relaxed-" + name, .description = "Enable sandboxing, but allow builds to disable it.", .category = category, - .handler = {[=]() { override(smRelaxed); }} + .handler = {[this]() { override(smRelaxed); }} }); } |