More fixes for dawn->google3 roll
Add -Wctad-maybe-unsupported flag to clang like google3.
Change-Id: Ie2bd9377a22c3618d208e698f9f6a20626dc0138
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/135621
Reviewed-by: Austin Eng <enga@chromium.org>
Auto-Submit: Shrek Shao <shrekshao@google.com>
Commit-Queue: Shrek Shao <shrekshao@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
diff --git a/src/dawn/common/BUILD.gn b/src/dawn/common/BUILD.gn
index 7b821e7..c02f46c 100644
--- a/src/dawn/common/BUILD.gn
+++ b/src/dawn/common/BUILD.gn
@@ -118,6 +118,7 @@
cflags += [
"-Wconditional-uninitialized",
"-Wcstring-format-directive",
+ "-Wctad-maybe-unsupported",
"-Wc++11-narrowing",
"-Wdeprecated-copy",
"-Wdeprecated-copy-dtor",
diff --git a/src/dawn/native/CommandBufferStateTracker.cpp b/src/dawn/native/CommandBufferStateTracker.cpp
index 833ee90..6ca913d 100644
--- a/src/dawn/native/CommandBufferStateTracker.cpp
+++ b/src/dawn/native/CommandBufferStateTracker.cpp
@@ -363,7 +363,8 @@
!TextureViewsAllMatch(views),
"In compatibility mode, %s must not have different views in a single draw/dispatch "
"command. texture views: %s",
- texture, ityp::span(views->data(), views->size()));
+ texture,
+ ityp::span<size_t, const TextureViewBase* const>(views->data(), views->size()));
}
return {};