forked from fmtlib/fmt
Eliminate intel compiler warning
The intel compiler defines `__GNUC__`, but does not support the gcc `_Pragma`. This PR filters out the intel compiler to avoid warnings about an unrecognized function.
This commit is contained in:
committed by
Victor Zverovich
parent
fd16bcb20c
commit
3bd806f12f
@ -24,7 +24,7 @@
|
|||||||
# define FMT_CLANG_VERSION 0
|
# define FMT_CLANG_VERSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(__clang__)
|
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
|
||||||
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||||
# define FMT_GCC_PRAGMA(arg) _Pragma(arg)
|
# define FMT_GCC_PRAGMA(arg) _Pragma(arg)
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user