Skip to content

Commit

Permalink
Add [[maybe_unused]] to CHAR_T_STRINGVIEW
Browse files Browse the repository at this point in the history
Address some warnings
  • Loading branch information
edo9300 committed Dec 3, 2024
1 parent 8e3e8c8 commit 1ac735e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gframe/text_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using wstringview = basic_string_view<wchar_t>;

namespace Detail {
template<typename Char>
static constexpr inline epro::basic_string_view<Char> CHAR_T_STRINGVIEW(epro::stringview stringview, epro::wstringview wstringview) {
static constexpr inline epro::basic_string_view<Char> CHAR_T_STRINGVIEW([[maybe_unused]] epro::stringview stringview, [[maybe_unused]] epro::wstringview wstringview) {
if constexpr(std::is_same_v<Char, wchar_t>) {
return wstringview;
} else {
Expand Down

0 comments on commit 1ac735e

Please sign in to comment.