Commit 32f02954 authored by Sean L's avatar Sean L

Fix warning when using Intel C++ on OS X

Unfortunately, Intel's C++ compiler defines `__clang__` which means that
some of the pragmas in use that Intel C++ doesn't use will cause
warnings to be generated.
parent 3df9bf3a
...@@ -116,7 +116,7 @@ inline uint32_t clzll(uint64_t x) { ...@@ -116,7 +116,7 @@ inline uint32_t clzll(uint64_t x) {
# define FMT_GCC_EXTENSION # define FMT_GCC_EXTENSION
#endif #endif
#ifdef __clang__ #if defined(__clang__) && !defined(__INTEL_COMPILER)
# pragma clang diagnostic push # pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdocumentation" # pragma clang diagnostic ignored "-Wdocumentation"
#endif #endif
...@@ -3146,7 +3146,7 @@ operator"" _a(const wchar_t *s, std::size_t) { return {s}; } ...@@ -3146,7 +3146,7 @@ operator"" _a(const wchar_t *s, std::size_t) { return {s}; }
# pragma GCC diagnostic pop # pragma GCC diagnostic pop
#endif #endif
#ifdef __clang__ #if defined(__clang__) && !defined(__INTEL_COMPILER)
# pragma clang diagnostic pop # pragma clang diagnostic pop
#endif #endif
......
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