From 7911f8b67fd9ca8bc6a28b6e34a510a86fa7a838 Mon Sep 17 00:00:00 2001 From: vector-of-bool Date: Mon, 2 Sep 2024 18:41:07 -0600 Subject: [PATCH] Other compiler errors --- src/neo/query.test.cpp | 2 ++ src/neo/repr.hpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/neo/query.test.cpp b/src/neo/query.test.cpp index 69b7156..1b8e442 100644 --- a/src/neo/query.test.cpp +++ b/src/neo/query.test.cpp @@ -1,4 +1,6 @@ #include "./query.hpp" + +#include #include struct get_allocator : neo::query_interface { diff --git a/src/neo/repr.hpp b/src/neo/repr.hpp index 72731f7..61f695c 100644 --- a/src/neo/repr.hpp +++ b/src/neo/repr.hpp @@ -394,7 +394,7 @@ struct repr_builtin { /// repr()'d, includes the repr() of the pointed-to value template struct repr_builtin { - constexpr static void write(auto out, auto* value) noexcept { + constexpr static void write(auto out, auto* value [[maybe_unused]]) noexcept { if constexpr (neo_is_void(T)) { // Special case for void* if constexpr (out.just_type) { @@ -473,7 +473,7 @@ struct repr_builtin { template requires(not neo_is_pointer(Integral) && weak_same_as>) // struct repr_builtin { - constexpr static void write(auto out, auto* value) noexcept { + constexpr static void write(auto out, auto* value [[maybe_unused]]) noexcept { if constexpr (weak_same_as) { if constexpr (out.just_type) { out.append("bool");