suppress bogus warnings with gcc 13.0 and later
This commit is contained in:
@ -1742,7 +1742,14 @@ constexpr auto encode_types() -> unsigned long long {
|
|||||||
|
|
||||||
template <typename Context, typename T>
|
template <typename Context, typename T>
|
||||||
FMT_CONSTEXPR FMT_INLINE auto make_value(T&& val) -> value<Context> {
|
FMT_CONSTEXPR FMT_INLINE auto make_value(T&& val) -> value<Context> {
|
||||||
|
#if FMT_GCC_VERSION && FMT_GCC_VERSION >= 1300
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||||
const auto& arg = arg_mapper<Context>().map(FMT_FORWARD(val));
|
const auto& arg = arg_mapper<Context>().map(FMT_FORWARD(val));
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#else
|
||||||
|
const auto& arg = arg_mapper<Context>().map(FMT_FORWARD(val));
|
||||||
|
#endif
|
||||||
|
|
||||||
constexpr bool formattable_char =
|
constexpr bool formattable_char =
|
||||||
!std::is_same<decltype(arg), const unformattable_char&>::value;
|
!std::is_same<decltype(arg), const unformattable_char&>::value;
|
||||||
|
|||||||
Reference in New Issue
Block a user