From 1ac735e3b06329813847294b23c4e37ebe50b79c Mon Sep 17 00:00:00 2001 From: Edoardo Lolletti Date: Tue, 3 Dec 2024 21:24:59 +0100 Subject: [PATCH] Add [[maybe_unused]] to CHAR_T_STRINGVIEW Address some warnings --- gframe/text_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gframe/text_types.h b/gframe/text_types.h index 4c4dfbe6e..2474d3cbb 100644 --- a/gframe/text_types.h +++ b/gframe/text_types.h @@ -22,7 +22,7 @@ using wstringview = basic_string_view; namespace Detail { template -static constexpr inline epro::basic_string_view CHAR_T_STRINGVIEW(epro::stringview stringview, epro::wstringview wstringview) { +static constexpr inline epro::basic_string_view CHAR_T_STRINGVIEW([[maybe_unused]] epro::stringview stringview, [[maybe_unused]] epro::wstringview wstringview) { if constexpr(std::is_same_v) { return wstringview; } else {