diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-05 17:54:10 +0100 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-05 17:54:10 +0100 |
| commit | dacdd54a805aac286e07582706d8a0e85d1f69a4 (patch) | |
| tree | c847bd532939a08527d9d2a6d009a1d36c5b0fc7 /src | |
| parent | 723476a90cccc611f9c80f812f0b96541fab326e (diff) | |
| download | lanes-dacdd54a805aac286e07582706d8a0e85d1f69a4.tar.gz lanes-dacdd54a805aac286e07582706d8a0e85d1f69a4.tar.bz2 lanes-dacdd54a805aac286e07582706d8a0e85d1f69a4.zip | |
Fix gcc being unhappy with [[nodiscard]] enums
Diffstat (limited to 'src')
| -rw-r--r-- | src/deep.hpp | 2 | ||||
| -rw-r--r-- | src/keeper.hpp | 1 | ||||
| -rw-r--r-- | src/tools.hpp | 2 | ||||
| -rw-r--r-- | src/universe.hpp | 1 |
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 |
| 12 | enum class [[nodiscard]] LookupMode; | 12 | enum class LookupMode; |
| 13 | class DeepFactory; | 13 | class DeepFactory; |
| 14 | class Universe; | 14 | class 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 |
| 6 | class Linda; | 6 | class Linda; |
| 7 | enum class [[nodiscard]] LookupMode; | ||
| 8 | class Universe; | 7 | class Universe; |
| 9 | 8 | ||
| 10 | DECLARE_UNIQUE_TYPE(KeeperState,lua_State*); | 9 | DECLARE_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 | ||
| 5 | class Universe; | 5 | class Universe; |
| 6 | 6 | ||
| 7 | enum class [[nodiscard]] LookupMode | 7 | enum 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 |
| 13 | class Lane; | 13 | class Lane; |
| 14 | class Linda; | 14 | class Linda; |
| 15 | enum class LookupMode; | ||
| 15 | 16 | ||
| 16 | // ################################################################################################# | 17 | // ################################################################################################# |
| 17 | 18 | ||
