From 648b5fdefa9cbe233816454d5e048a3bad705bcb Mon Sep 17 00:00:00 2001 From: William Emfinger <waemfinger@gmail.com> Date: Thu, 14 Jul 2022 11:22:10 -0500 Subject: [PATCH] add [[maybe_unused]] to library --- .../SoftwareGenerator/templates/forEach/uml/magic_enum.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/SoftwareGenerator/templates/forEach/uml/magic_enum.hpp b/src/plugins/SoftwareGenerator/templates/forEach/uml/magic_enum.hpp index 886f888..3feb389 100644 --- a/src/plugins/SoftwareGenerator/templates/forEach/uml/magic_enum.hpp +++ b/src/plugins/SoftwareGenerator/templates/forEach/uml/magic_enum.hpp @@ -993,7 +993,7 @@ template <typename E> // Obtains index in enum values from enum value. // Returns optional with index. template <typename E> -[[nodiscard]] constexpr auto enum_index(E value) noexcept -> detail::enable_if_t<E, optional<std::size_t>> { +[[nodiscard]] constexpr auto enum_index([[maybe_unused]] E value) noexcept -> detail::enable_if_t<E, optional<std::size_t>> { using D = std::decay_t<E>; using U = underlying_type_t<D>;