Skip to content

Commit

Permalink
Eliminate intel compiler warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gsjaardema authored and vitaut committed Jun 26, 2021
1 parent fd16bcb commit 3bd806f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bd806f

Please sign in to comment.