aboutsummaryrefslogtreecommitdiff
path: root/libcxxabi
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2023-02-23 21:17:11 +0100
committerNikolas Klauser <nikolasklauser@berlin.de>2023-03-08 19:26:49 +0100
commite65cd4ce832b52d7b625a1e01cbecb264f9d2716 (patch)
tree14f5932b106616512a0328917a6814a9077395a5 /libcxxabi
parent555b572e3f407ac48b5f30fc06760cc4d0549977 (diff)
downloadllvm-e65cd4ce832b52d7b625a1e01cbecb264f9d2716.zip
llvm-e65cd4ce832b52d7b625a1e01cbecb264f9d2716.tar.gz
llvm-e65cd4ce832b52d7b625a1e01cbecb264f9d2716.tar.bz2
[libc++] Enable -Wunused-template
Clang wants to enable this flag by default, but libc++ isn't working with it yet. Reviewed By: Mordante, #libc, #libc_abi, EricWF Spies: libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D144667
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/src/demangle/StringView.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libcxxabi/src/demangle/StringView.h b/libcxxabi/src/demangle/StringView.h
index 90890e3..07b7cf8 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