From 67fb61298af68f48fc3a0b7b183848305be285cb Mon Sep 17 00:00:00 2001 From: benn Date: Tue, 8 Aug 2023 00:35:26 +0200 Subject: [PATCH] Upgrade: compile fixes for GCC-12 --- src/lib/split-splice.hpp | 1 + src/steam/control/command-setup.hpp | 2 +- tests/library/split-splice-test.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/split-splice.hpp b/src/lib/split-splice.hpp index c896289da..4bb88f03a 100644 --- a/src/lib/split-splice.hpp +++ b/src/lib/split-splice.hpp @@ -76,6 +76,7 @@ #include "lib/time/timevalue.hpp" #include "lib/nocopy.hpp" +#include #include diff --git a/src/steam/control/command-setup.hpp b/src/steam/control/command-setup.hpp index 54eeb0672..81be78b9a 100644 --- a/src/steam/control/command-setup.hpp +++ b/src/steam/control/command-setup.hpp @@ -133,7 +133,7 @@ namespace control { * and immediately be assigned by a lambda, whose body is what follows the macro invocation */ #define COMMAND_DEFINITION(_NAME_) \ - CommandSetup _NAME_ = CommandSetup{STRINGIFY(_NAME_)} = [&](CommandDef& def) + CommandSetup _NAME_ = CommandSetup{STRINGIFY(_NAME_)} = [](CommandDef& def) diff --git a/tests/library/split-splice-test.cpp b/tests/library/split-splice-test.cpp index fa0336aa8..16a6b6b74 100644 --- a/tests/library/split-splice-test.cpp +++ b/tests/library/split-splice-test.cpp @@ -38,6 +38,7 @@ #include "lib/nocopy.hpp" #include "lib/util.hpp" +#include #include #include #include