Suppress warnings about variadic macros.

This commit is contained in:
Victor Zverovich 2014-06-24 13:01:44 -07:00
parent 55f6640cae
commit 8198df84f0

View File

@ -52,7 +52,6 @@
# if FMT_GCC_VERSION >= 406
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wlong-long"
# pragma GCC diagnostic ignored "-Wvariadic-macros"
# endif
#else
# define FMT_GCC_EXTENSION
@ -2095,6 +2094,12 @@ inline void FormatDec(char *&buffer, T value) {
}
}
#if FMT_GCC_VERSION
// Use the system_header pragma to suppress warnings about variadic macros
// because suppressing -Wvariadic-macros with the diagnostic pragma doesn't work.
# pragma GCC system_header
#endif
#define FMT_CONCATENATE(arg1, arg2) FMT_CONCATENATE1(arg1, arg2)
#define FMT_CONCATENATE1(arg1, arg2) FMT_CONCATENATE2(arg1, arg2)
#define FMT_CONCATENATE2(arg1, arg2) arg1##arg2