mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-03 23:01:03 +00:00
Suppress warnings about variadic macros.
This commit is contained in:
parent
55f6640cae
commit
8198df84f0
7
format.h
7
format.h
@ -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) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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
|
||||||
|
Loading…
Reference in New Issue
Block a user