diff --git a/include/toml++/impl/make_node.h b/include/toml++/impl/make_node.h index 8561a05..88199a5 100644 --- a/include/toml++/impl/make_node.h +++ b/include/toml++/impl/make_node.h @@ -13,7 +13,7 @@ TOML_IMPL_NAMESPACE_START template TOML_NODISCARD TOML_ATTR(returns_nonnull) - auto* make_node_impl_specialized(T && val, value_flags flags) + auto* make_node_impl_specialized(T && val, [[maybe_unused]] value_flags flags) { using unwrapped_type = unwrap_node>; static_assert(!std::is_same_v); diff --git a/include/toml++/impl/value.h b/include/toml++/impl/value.h index f7e7deb..a8ec51f 100644 --- a/include/toml++/impl/value.h +++ b/include/toml++/impl/value.h @@ -108,7 +108,7 @@ TOML_IMPL_NAMESPACE_START { template TOML_NODISCARD - static std::string make(T&& arg) noexcept + static std::string make(T&& arg) { using arg_type = std::decay_t; #if TOML_HAS_CHAR8 diff --git a/toml.hpp b/toml.hpp index 9a726ac..470658c 100644 --- a/toml.hpp +++ b/toml.hpp @@ -4636,7 +4636,7 @@ TOML_IMPL_NAMESPACE_START { template TOML_NODISCARD - static std::string make(T&& arg) noexcept + static std::string make(T&& arg) { using arg_type = std::decay_t; #if TOML_HAS_CHAR8 @@ -5639,7 +5639,7 @@ TOML_IMPL_NAMESPACE_START template TOML_NODISCARD TOML_ATTR(returns_nonnull) - auto* make_node_impl_specialized(T && val, value_flags flags) + auto* make_node_impl_specialized(T && val, [[maybe_unused]] value_flags flags) { using unwrapped_type = unwrap_node>; static_assert(!std::is_same_v);