Upgrade: compile fixes for GCC-12

This commit is contained in:
benn 2023-08-08 00:35:26 +02:00 committed by Ichthyostega
parent 4131602593
commit 67fb61298a
3 changed files with 3 additions and 1 deletions

View file

@ -76,6 +76,7 @@
#include "lib/time/timevalue.hpp"
#include "lib/nocopy.hpp"
#include <optional>
#include <array>

View file

@ -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)

View file

@ -38,6 +38,7 @@
#include "lib/nocopy.hpp"
#include "lib/util.hpp"
#include <optional>
#include <utility>
#include <string>
#include <list>