From 907473919c1d3fdead9fb7a8b5aad26a75f6f92e Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Wed, 23 Jun 2021 10:38:45 -0600 Subject: [PATCH] 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. --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 14e8c914f097..e14a0feb168d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -24,7 +24,7 @@ # define FMT_CLANG_VERSION 0 #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_PRAGMA(arg) _Pragma(arg) #else