mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Suppress unused typedef warning
This commit is contained in:
committed by
Victor Zverovich
parent
df56fdf883
commit
b9087ee587
@ -1743,7 +1743,7 @@ inline auto find_escape(const char* begin, const char* end)
|
|||||||
/* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
|
/* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
|
||||||
/* Use a macro-like name to avoid shadowing warnings. */ \
|
/* Use a macro-like name to avoid shadowing warnings. */ \
|
||||||
struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base { \
|
struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base { \
|
||||||
using char_type = fmt::remove_cvref_t<decltype(s[0])>; \
|
using char_type FMT_MAYBE_UNUSED = fmt::remove_cvref_t<decltype(s[0])>; \
|
||||||
FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit \
|
FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit \
|
||||||
operator fmt::basic_string_view<char_type>() const { \
|
operator fmt::basic_string_view<char_type>() const { \
|
||||||
return fmt::detail_exported::compile_string_to_view<char_type>(s); \
|
return fmt::detail_exported::compile_string_to_view<char_type>(s); \
|
||||||
|
Reference in New Issue
Block a user