diff options
Diffstat (limited to 'libcxxabi')
-rw-r--r-- | libcxxabi/src/demangle/StringView.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libcxxabi/src/demangle/StringView.h b/libcxxabi/src/demangle/StringView.h index 90890e377110..07b7cf857575 100644 --- a/libcxxabi/src/demangle/StringView.h +++ b/libcxxabi/src/demangle/StringView.h @@ -17,9 +17,16 @@ #define DEMANGLE_STRINGVIEW_H #include "DemangleConfig.h" + +#include <__cxxabi_config.h> #include <cassert> #include <cstring> +#ifdef _LIBCXXABI_COMPILER_CLANG +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-template" +#endif + DEMANGLE_NAMESPACE_BEGIN class StringView { @@ -119,4 +126,8 @@ inline bool operator==(const StringView &LHS, const StringView &RHS) { DEMANGLE_NAMESPACE_END +#ifdef _LIBCXXABI_COMPILER_CLANG +#pragma clang diagnostic pop +#endif + #endif |