Commit 8198df84 authored by Victor Zverovich's avatar Victor Zverovich

Suppress warnings about variadic macros.

parent 55f6640c
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
# if FMT_GCC_VERSION >= 406 # if FMT_GCC_VERSION >= 406
# pragma GCC diagnostic push # pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wlong-long" # pragma GCC diagnostic ignored "-Wlong-long"
# pragma GCC diagnostic ignored "-Wvariadic-macros"
# endif # endif
#else #else
# define FMT_GCC_EXTENSION # define FMT_GCC_EXTENSION
...@@ -2095,6 +2094,12 @@ inline void FormatDec(char *&buffer, T value) { ...@@ -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_CONCATENATE(arg1, arg2) FMT_CONCATENATE1(arg1, arg2)
#define FMT_CONCATENATE1(arg1, arg2) FMT_CONCATENATE2(arg1, arg2) #define FMT_CONCATENATE1(arg1, arg2) FMT_CONCATENATE2(arg1, arg2)
#define FMT_CONCATENATE2(arg1, arg2) arg1##arg2 #define FMT_CONCATENATE2(arg1, arg2) arg1##arg2
......
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