Skip to content

Commit b9087ee

Browse files
h-friederichvitaut
authored andcommitted
Suppress unused typedef warning
1 parent df56fdf commit b9087ee

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

include/fmt/format.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,18 +1738,18 @@ inline auto find_escape(const char* begin, const char* end)
17381738
return result;
17391739
}
17401740

1741-
#define FMT_STRING_IMPL(s, base, explicit) \
1742-
[] { \
1743-
/* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
1744-
/* Use a macro-like name to avoid shadowing warnings. */ \
1745-
struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base { \
1746-
using char_type = fmt::remove_cvref_t<decltype(s[0])>; \
1747-
FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit \
1748-
operator fmt::basic_string_view<char_type>() const { \
1749-
return fmt::detail_exported::compile_string_to_view<char_type>(s); \
1750-
} \
1751-
}; \
1752-
return FMT_COMPILE_STRING(); \
1741+
#define FMT_STRING_IMPL(s, base, explicit) \
1742+
[] { \
1743+
/* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
1744+
/* Use a macro-like name to avoid shadowing warnings. */ \
1745+
struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base { \
1746+
using char_type FMT_MAYBE_UNUSED = fmt::remove_cvref_t<decltype(s[0])>; \
1747+
FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit \
1748+
operator fmt::basic_string_view<char_type>() const { \
1749+
return fmt::detail_exported::compile_string_to_view<char_type>(s); \
1750+
} \
1751+
}; \
1752+
return FMT_COMPILE_STRING(); \
17531753
}()
17541754

17551755
/**

0 commit comments

Comments
 (0)