Commit d4984551 authored by Victor Zverovich's avatar Victor Zverovich

Check gcc version for diagnostic once.

parent 16cb991f
......@@ -56,12 +56,11 @@
# define FMT_NOEXCEPT(expr)
#endif
#ifdef __GNUC__
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
# define FMT_GCC_DIAGNOSTIC
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wlong-long"
#endif
#endif
namespace fmt {
......@@ -1235,10 +1234,8 @@ inline Formatter<Write> Print(StringRef format) {
}
}
#ifdef __GNUC__
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
#ifdef FMT_GCC_DIAGNOSTIC
# pragma GCC diagnostic pop
#endif
#endif
#endif // FORMAT_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment