From 816f2e5e0d52b201f396a01992ff6197cf48dc72 Mon Sep 17 00:00:00 2001 From: Bruce Dawson Date: Mon, 23 Jan 2017 21:48:04 -0800 Subject: Suppress VC++ 2017 signed/unsigned warning When building Chrome with VC++ 2017 there is one warning, from passing an int to a call to std::vector::find. This change adds a cast to avoid that warning, thus fixing issue #1395. --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index b6b9c821..03f9c5e0 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -10220,7 +10220,7 @@ static bool FindDependency(const int index, const int dependent, const std::vect processed_nodes.insert(index); const DAGNode &node = subpass_to_node[index]; // Look for a dependency path. If one exists return true else recurse on the previous nodes. - if (std::find(node.prev.begin(), node.prev.end(), dependent) == node.prev.end()) { + if (std::find(node.prev.begin(), node.prev.end(), static_cast(dependent)) == node.prev.end()) { for (auto elem : node.prev) { if (FindDependency(elem, dependent, subpass_to_node, processed_nodes)) return true; -- cgit v1.2.3