Add the -Wdeprecated-copy-dtor warning.

This should fix the warning triggering when using Dawn in Skia.

Bug: None
Change-Id: I045ebc87f9e8dbff035920fc6eaa409c2b70d0f2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30701
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2020-11-03 14:24:05 +00:00
committed by Commit Bot service account
parent 8d248300c4
commit 18c7b0e0b1
11 changed files with 92 additions and 13 deletions

View File

@@ -100,6 +100,7 @@ config("dawn_internal") {
"-Wcstring-format-directive",
"-Wc++11-narrowing",
"-Wdeprecated-copy",
"-Wdeprecated-copy-dtor",
"-Wduplicate-enum",
"-Wextra-semi-stmt",
"-Wimplicit-fallthrough",
@@ -121,9 +122,6 @@ config("dawn_internal") {
# if (myUint64 > std::numeric_limits<size_t>::max()) {...}
cflags += [ "-Wno-tautological-type-limit-compare" ]
# Suppressions for warnings found in Skia that should really be fixed.
cflags += [ "-Wno-deprecated-copy-dtor" ]
if (is_win) {
cflags += [
# clang-cl doesn't know -pedantic, pass it explicitly to the clang driver