mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
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.
This commit is contained in:
parent
3df9bf3a91
commit
32f0295460
4
format.h
4
format.h
@ -116,7 +116,7 @@ inline uint32_t clzll(uint64_t x) {
|
||||
# define FMT_GCC_EXTENSION
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#if defined(__clang__) && !defined(__INTEL_COMPILER)
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wdocumentation"
|
||||
#endif
|
||||
@ -3146,7 +3146,7 @@ operator"" _a(const wchar_t *s, std::size_t) { return {s}; }
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#if defined(__clang__) && !defined(__INTEL_COMPILER)
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user