Skip to content

Commit

Permalink
minor fixes/tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
marzer committed Apr 3, 2023
1 parent 82c3b90 commit ad55bae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/toml++/impl/make_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TOML_IMPL_NAMESPACE_START
template <typename T>
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<remove_cvref<T>>;
static_assert(!std::is_same_v<unwrapped_type, node>);
Expand Down
2 changes: 1 addition & 1 deletion include/toml++/impl/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ TOML_IMPL_NAMESPACE_START
{
template <typename T>
TOML_NODISCARD
static std::string make(T&& arg) noexcept
static std::string make(T&& arg)
{
using arg_type = std::decay_t<T>;
#if TOML_HAS_CHAR8
Expand Down
4 changes: 2 additions & 2 deletions toml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4636,7 +4636,7 @@ TOML_IMPL_NAMESPACE_START
{
template <typename T>
TOML_NODISCARD
static std::string make(T&& arg) noexcept
static std::string make(T&& arg)
{
using arg_type = std::decay_t<T>;
#if TOML_HAS_CHAR8
Expand Down Expand Up @@ -5639,7 +5639,7 @@ TOML_IMPL_NAMESPACE_START
template <typename T>
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<remove_cvref<T>>;
static_assert(!std::is_same_v<unwrapped_type, node>);
Expand Down

0 comments on commit ad55bae

Please sign in to comment.