mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Disable gnu-string-literal-operator-template warning
This commit is contained in:
@ -111,14 +111,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|||||||
set(PEDANTIC_COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS}
|
set(PEDANTIC_COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS}
|
||||||
-Wno-zero-as-null-pointer-constant)
|
-Wno-zero-as-null-pointer-constant)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
check_cxx_compiler_flag(
|
|
||||||
-Wno-gnu-string-literal-operator-template HAS_GNU_UDL_WARNING)
|
|
||||||
if (HAS_GNU_UDL_WARNING)
|
|
||||||
set(PEDANTIC_COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS}
|
|
||||||
-Wno-gnu-string-literal-operator-template)
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
|
@ -65,6 +65,10 @@
|
|||||||
# pragma GCC diagnostic ignored "-Wsign-conversion"
|
# pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
# if FMT_CLANG_VERSION
|
||||||
|
# pragma GCC diagnostic ignored "-Wgnu-string-literal-operator-template"
|
||||||
|
# endif
|
||||||
|
|
||||||
#ifdef _SECURE_SCL
|
#ifdef _SECURE_SCL
|
||||||
# define FMT_SECURE_SCL _SECURE_SCL
|
# define FMT_SECURE_SCL _SECURE_SCL
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user