Remove mentions of -Wweak-template-vtables
the Clang warning is being removed, see bug. Bug: chromium:1264351, chromium:1294786 Change-Id: I206f1c891f722cd906fd357176c9f68778e0861f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/464616 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
26e1285932
commit
55f6115f80
@ -412,6 +412,10 @@ config("warnings") {
|
||||
"-Weverything",
|
||||
"-Wno-unknown-warning-option", # Let older Clangs ignore newer Clangs'
|
||||
# warnings.
|
||||
|
||||
# This was deprecated in Clang 14 and removed in Clang 15. It might still
|
||||
# fire with older Clangs, so disable it explicitly.
|
||||
"-Wno-weak-template-vtables",
|
||||
]
|
||||
|
||||
if (target_cpu == "arm" && is_ios) {
|
||||
|
@ -55,15 +55,7 @@ struct ProgramVisitorTypes {
|
||||
using UniquePtrStatement = const std::unique_ptr<SkSL::Statement>;
|
||||
};
|
||||
|
||||
// Squelch bogus Clang warning about template vtables: https://bugs.llvm.org/show_bug.cgi?id=18733
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wweak-template-vtables"
|
||||
#endif
|
||||
extern template class TProgramVisitor<ProgramVisitorTypes>;
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
class ProgramVisitor : public TProgramVisitor<ProgramVisitorTypes> {
|
||||
public:
|
||||
|
@ -21,15 +21,7 @@ struct ProgramWriterTypes {
|
||||
using UniquePtrStatement = std::unique_ptr<SkSL::Statement>;
|
||||
};
|
||||
|
||||
// Squelch bogus Clang warning about template vtables: https://bugs.llvm.org/show_bug.cgi?id=18733
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wweak-template-vtables"
|
||||
#endif
|
||||
extern template class TProgramVisitor<ProgramWriterTypes>;
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
class ProgramWriter : public TProgramVisitor<ProgramWriterTypes> {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user