aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-05 17:54:10 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-05 17:54:10 +0100
commitdacdd54a805aac286e07582706d8a0e85d1f69a4 (patch)
treec847bd532939a08527d9d2a6d009a1d36c5b0fc7
parent723476a90cccc611f9c80f812f0b96541fab326e (diff)
downloadlanes-dacdd54a805aac286e07582706d8a0e85d1f69a4.tar.gz
lanes-dacdd54a805aac286e07582706d8a0e85d1f69a4.tar.bz2
lanes-dacdd54a805aac286e07582706d8a0e85d1f69a4.zip
Fix gcc being unhappy with [[nodiscard]] enums
-rw-r--r--src/deep.hpp2
-rw-r--r--src/keeper.hpp1
-rw-r--r--src/tools.hpp2
-rw-r--r--src/universe.hpp1
4 files changed, 3 insertions, 3 deletions
diff --git a/src/deep.hpp b/src/deep.hpp
index 7d61f42..f8cfa0d 100644
--- a/src/deep.hpp
+++ b/src/deep.hpp
@@ -9,7 +9,7 @@
9#include "uniquekey.hpp" 9#include "uniquekey.hpp"
10 10
11// forwards 11// forwards
12enum class [[nodiscard]] LookupMode; 12enum class LookupMode;
13class DeepFactory; 13class DeepFactory;
14class Universe; 14class Universe;
15 15
diff --git a/src/keeper.hpp b/src/keeper.hpp
index 17b56de..5cebe07 100644
--- a/src/keeper.hpp
+++ b/src/keeper.hpp
@@ -4,7 +4,6 @@
4 4
5// forwards 5// forwards
6class Linda; 6class Linda;
7enum class [[nodiscard]] LookupMode;
8class Universe; 7class Universe;
9 8
10DECLARE_UNIQUE_TYPE(KeeperState,lua_State*); 9DECLARE_UNIQUE_TYPE(KeeperState,lua_State*);
diff --git a/src/tools.hpp b/src/tools.hpp
index 2b8c5b5..7955263 100644
--- a/src/tools.hpp
+++ b/src/tools.hpp
@@ -4,7 +4,7 @@
4 4
5class Universe; 5class Universe;
6 6
7enum class [[nodiscard]] LookupMode 7enum class LookupMode
8{ 8{
9 LaneBody, // send the lane body directly from the source to the destination lane. keep this one first so that it's the value we get when we default-construct 9 LaneBody, // send the lane body directly from the source to the destination lane. keep this one first so that it's the value we get when we default-construct
10 ToKeeper, // send a function from a lane to a keeper state 10 ToKeeper, // send a function from a lane to a keeper state
diff --git a/src/universe.hpp b/src/universe.hpp
index 75604d8..ab06907 100644
--- a/src/universe.hpp
+++ b/src/universe.hpp
@@ -12,6 +12,7 @@
12// forwards 12// forwards
13class Lane; 13class Lane;
14class Linda; 14class Linda;
15enum class LookupMode;
15 16
16// ################################################################################################# 17// #################################################################################################
17 18