mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Reenable constexpr _compile on GCC 9
This commit is contained in:
parent
6e8d7e2776
commit
f46f5ecaf0
@ -139,8 +139,7 @@ FMT_END_NAMESPACE
|
|||||||
// support UDL templates and GCC >= 9 warns about them.
|
// support UDL templates and GCC >= 9 warns about them.
|
||||||
# if FMT_USE_USER_DEFINED_LITERALS && FMT_ICC_VERSION == 0 && \
|
# if FMT_USE_USER_DEFINED_LITERALS && FMT_ICC_VERSION == 0 && \
|
||||||
FMT_CUDA_VERSION == 0 && \
|
FMT_CUDA_VERSION == 0 && \
|
||||||
((FMT_GCC_VERSION >= 604 && FMT_GCC_VERSION <= 900 && \
|
((FMT_GCC_VERSION >= 604 && __cplusplus >= 201402L) || \
|
||||||
__cplusplus >= 201402L) || \
|
|
||||||
FMT_CLANG_VERSION >= 304)
|
FMT_CLANG_VERSION >= 304)
|
||||||
# define FMT_USE_UDL_TEMPLATE 1
|
# define FMT_USE_UDL_TEMPLATE 1
|
||||||
# else
|
# else
|
||||||
@ -3536,6 +3535,7 @@ FMT_CONSTEXPR basic_string_view<Char> compile_string_to_view(
|
|||||||
inline namespace literals {
|
inline namespace literals {
|
||||||
# if FMT_USE_UDL_TEMPLATE
|
# if FMT_USE_UDL_TEMPLATE
|
||||||
# pragma GCC diagnostic push
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
# if FMT_CLANG_VERSION
|
# if FMT_CLANG_VERSION
|
||||||
# pragma GCC diagnostic ignored "-Wgnu-string-literal-operator-template"
|
# pragma GCC diagnostic ignored "-Wgnu-string-literal-operator-template"
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user