Disable GCC warning about "long long".
This commit is contained in:
parent
2e8c75269a
commit
265b40ec6e
11
format.h
11
format.h
@ -45,6 +45,12 @@
|
|||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||||
# define FMT_GCC_EXTENSION __extension__
|
# define FMT_GCC_EXTENSION __extension__
|
||||||
|
// Disable warning about "long long" which is sometimes reported even
|
||||||
|
// when using __extension__.
|
||||||
|
# if FMT_GCC_VERSION >= 406
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wlong-long"
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define FMT_GCC_EXTENSION
|
# define FMT_GCC_EXTENSION
|
||||||
#endif
|
#endif
|
||||||
@ -1517,7 +1523,10 @@ std::wstring Format(const WStringRef &format, const Args & ... args) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if _MSC_VER
|
// Restore warnings.
|
||||||
|
#if FMT_GCC_VERSION >= 406
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#elif _MSC_VER
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user